1 var baseFunctions = require('./_baseFunctions'),
2 keysIn = require('./keysIn');
5 * Creates an array of function property names from own and inherited
6 * enumerable properties of `object`.
12 * @param {Object} object The object to inspect.
13 * @returns {Array} Returns the function names.
18 * this.a = _.constant('a');
19 * this.b = _.constant('b');
22 * Foo.prototype.c = _.constant('c');
24 * _.functionsIn(new Foo);
25 * // => ['a', 'b', 'c']
27 function functionsIn(object) {
28 return object == null ? [] : baseFunctions(object, keysIn(object));
31 module.exports = functionsIn;