X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=node_modules%2Fgrunt-legacy-log-utils%2Fnode_modules%2Flodash%2FtoPairs.js;fp=node_modules%2Fgrunt-legacy-log-utils%2Fnode_modules%2Flodash%2FtoPairs.js;h=8c6e4d0b0dec3524fb02c73f32f4b816dcbbda64;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/node_modules/grunt-legacy-log-utils/node_modules/lodash/toPairs.js b/node_modules/grunt-legacy-log-utils/node_modules/lodash/toPairs.js new file mode 100644 index 000000000..8c6e4d0b0 --- /dev/null +++ b/node_modules/grunt-legacy-log-utils/node_modules/lodash/toPairs.js @@ -0,0 +1,28 @@ +var baseToPairs = require('./_baseToPairs'), + keys = require('./keys'); + +/** + * Creates an array of own 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; + * + * _.toPairs(new Foo); + * // => [['a', 1], ['b', 2]] (iteration order is not guaranteed) + */ +function toPairs(object) { + return baseToPairs(object, keys(object)); +} + +module.exports = toPairs;