X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=node_modules%2Funcss%2Fnode_modules%2Flodash%2FfunctionsIn.js;fp=node_modules%2Funcss%2Fnode_modules%2Flodash%2FfunctionsIn.js;h=db4b811402aff424717f62d87bfb64873751d745;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/node_modules/uncss/node_modules/lodash/functionsIn.js b/node_modules/uncss/node_modules/lodash/functionsIn.js new file mode 100644 index 000000000..db4b81140 --- /dev/null +++ b/node_modules/uncss/node_modules/lodash/functionsIn.js @@ -0,0 +1,29 @@ +var baseFunctions = require('./internal/baseFunctions'), + keysIn = require('./keysIn'); + +/** + * Creates an array of function property names from own and inherited + * enumerable properties of `object`. + * + * @static + * @memberOf _ + * @category Object + * @param {Object} object The object to inspect. + * @returns {Array} Returns the new array of property names. + * @example + * + * function Foo() { + * this.a = _.constant('a'); + * this.b = _.constant('b'); + * } + * + * Foo.prototype.c = _.constant('c'); + * + * _.functionsIn(new Foo); + * // => ['a', 'b', 'c'] + */ +function functionsIn(object) { + return object == null ? [] : baseFunctions(object, keysIn(object)); +} + +module.exports = functionsIn;