|
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:
274 bytes
|
| Line | |
|---|
| 1 | import isFunction from './isFunction.js';
|
|---|
| 2 |
|
|---|
| 3 | // Return a sorted list of the function names available on the object.
|
|---|
| 4 | export default 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 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.