X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=node_modules%2Fgrunt-legacy-util%2Fnode_modules%2Flodash%2FtoPairsIn.js;fp=node_modules%2Fgrunt-legacy-util%2Fnode_modules%2Flodash%2FtoPairsIn.js;h=a6f882bc45a5ea8f410a787067f8cf542253e42a;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/node_modules/grunt-legacy-util/node_modules/lodash/toPairsIn.js b/node_modules/grunt-legacy-util/node_modules/lodash/toPairsIn.js new file mode 100644 index 000000000..a6f882bc4 --- /dev/null +++ b/node_modules/grunt-legacy-util/node_modules/lodash/toPairsIn.js @@ -0,0 +1,28 @@ +var baseToPairs = require('./_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;