X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=node_modules%2Fgrunt-uncss%2Fnode_modules%2Flodash%2FzipObject.js;fp=node_modules%2Fgrunt-uncss%2Fnode_modules%2Flodash%2FzipObject.js;h=23fdf1417d1d52a9ea5ef0fae850badc7db54607;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/node_modules/grunt-uncss/node_modules/lodash/zipObject.js b/node_modules/grunt-uncss/node_modules/lodash/zipObject.js new file mode 100644 index 000000000..23fdf1417 --- /dev/null +++ b/node_modules/grunt-uncss/node_modules/lodash/zipObject.js @@ -0,0 +1,24 @@ +var assignValue = require('./_assignValue'), + baseZipObject = require('./_baseZipObject'); + +/** + * This method is like `_.fromPairs` except that it accepts two arrays, + * one of property identifiers and one of corresponding values. + * + * @static + * @memberOf _ + * @since 0.4.0 + * @category Array + * @param {Array} [props=[]] The property identifiers. + * @param {Array} [values=[]] The property values. + * @returns {Object} Returns the new object. + * @example + * + * _.zipObject(['a', 'b'], [1, 2]); + * // => { 'a': 1, 'b': 2 } + */ +function zipObject(props, values) { + return baseZipObject(props || [], values || [], assignValue); +} + +module.exports = zipObject;