X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=node_modules%2Funcss%2Fnode_modules%2Flodash%2Finternal%2FbaseToPairs.js;fp=node_modules%2Funcss%2Fnode_modules%2Flodash%2Finternal%2FbaseToPairs.js;h=a13b7d28438bf4a69a727e7a93d5a269576f6123;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hp=0000000000000000000000000000000000000000;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad;p=yaffs-website diff --git a/node_modules/uncss/node_modules/lodash/internal/baseToPairs.js b/node_modules/uncss/node_modules/lodash/internal/baseToPairs.js new file mode 100644 index 000000000..a13b7d284 --- /dev/null +++ b/node_modules/uncss/node_modules/lodash/internal/baseToPairs.js @@ -0,0 +1,18 @@ +var arrayMap = require('./arrayMap'); + +/** + * The base implementation of `_.toPairs` and `_.toPairsIn` which creates an array + * of key-value pairs for `object` corresponding to the property names of `props`. + * + * @private + * @param {Object} object The object to query. + * @param {Array} props The property names to get values for. + * @returns {Object} Returns the new array of key-value pairs. + */ +function baseToPairs(object, props) { + return arrayMap(props, function(key) { + return [key, object[key]]; + }); +} + +module.exports = baseToPairs;