1 var assignValue = require('./_assignValue'),
2 baseZipObject = require('./_baseZipObject');
5 * This method is like `_.fromPairs` except that it accepts two arrays,
6 * one of property identifiers and one of corresponding values.
12 * @param {Array} [props=[]] The property identifiers.
13 * @param {Array} [values=[]] The property values.
14 * @returns {Object} Returns the new object.
17 * _.zipObject(['a', 'b'], [1, 2]);
18 * // => { 'a': 1, 'b': 2 }
20 function zipObject(props, values) {
21 return baseZipObject(props || [], values || [], assignValue);
24 module.exports = zipObject;