|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 11 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
291 bytes
|
| Line | |
|---|
| 1 | var isFunction = require('./isFunction.js');
|
|---|
| 2 |
|
|---|
| 3 | // Return a sorted list of the function names available on the object.
|
|---|
| 4 | function functions(obj) {
|
|---|
| 5 | var names = [];
|
|---|
| 6 | for (var key in obj) {
|
|---|
| 7 | if (isFunction(obj[key])) names.push(key);
|
|---|
| 8 | }
|
|---|
| 9 | return names.sort();
|
|---|
| 10 | }
|
|---|
| 11 |
|
|---|
| 12 | module.exports = functions;
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.