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