functions.js 575 B

1234567891011121314151617181920212223
  1. var baseFunctions = require('../internal/baseFunctions'),
  2. keysIn = require('./keysIn');
  3. /**
  4. * Creates an array of function property names from all enumerable properties,
  5. * own and inherited, of `object`.
  6. *
  7. * @static
  8. * @memberOf _
  9. * @alias methods
  10. * @category Object
  11. * @param {Object} object The object to inspect.
  12. * @returns {Array} Returns the new array of property names.
  13. * @example
  14. *
  15. * _.functions(_);
  16. * // => ['after', 'ary', 'assign', ...]
  17. */
  18. function functions(object) {
  19. return baseFunctions(object, keysIn(object));
  20. }
  21. module.exports = functions;