basant307/AI_Governance_Project
045
1var baseFunctions = require('./_baseFunctions'),2 keys = require('./keys');3 4/**5 * Creates an array of function property names from own enumerable properties6 * of `object`.7 *8 * @static9 * @since 0.1.010 * @memberOf _11 * @category Object12 * @param {Object} object The object to inspect.13 * @returns {Array} Returns the function names.14 * @see _.functionsIn15 * @example16 *17 * function Foo() {18 * this.a = _.constant('a');19 * this.b = _.constant('b');20 * }21 *22 * Foo.prototype.c = _.constant('c');23 *24 * _.functions(new Foo);25 * // => ['a', 'b']26 */27function functions(object) {28 return object == null ? [] : baseFunctions(object, keys(object));29}30 31module.exports = functions;32 