Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
23 lines (21 sloc)
575 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var baseFunctions = require('../internal/baseFunctions'), | |
| keysIn = require('./keysIn'); | |
| /** | |
| * Creates an array of function property names from all enumerable properties, | |
| * own and inherited, of `object`. | |
| * | |
| * @static | |
| * @memberOf _ | |
| * @alias methods | |
| * @category Object | |
| * @param {Object} object The object to inspect. | |
| * @returns {Array} Returns the new array of property names. | |
| * @example | |
| * | |
| * _.functions(_); | |
| * // => ['after', 'ary', 'assign', ...] | |
| */ | |
| function functions(object) { | |
| return baseFunctions(object, keysIn(object)); | |
| } | |
| module.exports = functions; |