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 names and one of corresponding values.
11 * @param {Array} [props=[]] The property names.
12 * @param {Array} [values=[]] The property values.
13 * @returns {Object} Returns the new object.
16 * _.zipObject(['a', 'b'], [1, 2]);
17 * // => { 'a': 1, 'b': 2 }
19 function zipObject(props, values) {
20 return baseZipObject(props || [], values || [], assignValue);
23 module.exports = zipObject;