X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=node_modules%2Funcss%2Fnode_modules%2Flodash%2FtoPairsIn.js;fp=node_modules%2Funcss%2Fnode_modules%2Flodash%2FtoPairsIn.js;h=552f17348b80ca19b7e02901304df0652825d518;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/node_modules/uncss/node_modules/lodash/toPairsIn.js b/node_modules/uncss/node_modules/lodash/toPairsIn.js new file mode 100644 index 000000000..552f17348 --- /dev/null +++ b/node_modules/uncss/node_modules/lodash/toPairsIn.js @@ -0,0 +1,28 @@ +var baseToPairs = require('./internal/baseToPairs'), + keysIn = require('./keysIn'); + +/** + * Creates an array of own and inherited enumerable key-value pairs for `object`. + * + * @static + * @memberOf _ + * @category Object + * @param {Object} object The object to query. + * @returns {Array} Returns the new array of key-value pairs. + * @example + * + * function Foo() { + * this.a = 1; + * this.b = 2; + * } + * + * Foo.prototype.c = 3; + * + * _.toPairsIn(new Foo); + * // => [['a', 1], ['b', 2], ['c', 1]] (iteration order is not guaranteed) + */ +function toPairsIn(object) { + return baseToPairs(object, keysIn(object)); +} + +module.exports = toPairsIn;