b48e5a65b5f37b3a794342e01d1510c0896d2f09
[yaffs-website] / node_modules / grunt-legacy-log-utils / node_modules / lodash / functionsIn.js
1 var baseFunctions = require('./_baseFunctions'),
2     keysIn = require('./keysIn');
3
4 /**
5  * Creates an array of function property names from own and inherited
6  * enumerable properties of `object`.
7  *
8  * @static
9  * @memberOf _
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  * function Foo() {
16  *   this.a = _.constant('a');
17  *   this.b = _.constant('b');
18  * }
19  *
20  * Foo.prototype.c = _.constant('c');
21  *
22  * _.functionsIn(new Foo);
23  * // => ['a', 'b', 'c']
24  */
25 function functionsIn(object) {
26   return object == null ? [] : baseFunctions(object, keysIn(object));
27 }
28
29 module.exports = functionsIn;