functions.js 274 B

12345678910
  1. import isFunction from './isFunction.js';
  2. // Return a sorted list of the function names available on the object.
  3. export default function functions(obj) {
  4. var names = [];
  5. for (var key in obj) {
  6. if (isFunction(obj[key])) names.push(key);
  7. }
  8. return names.sort();
  9. }