2 * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
5 * @param {Array} props The property names.
6 * @param {Array} values The property values.
7 * @param {Function} assignFunc The function to assign values.
8 * @returns {Object} Returns the new object.
10 function baseZipObject(props, values, assignFunc) {
12 length = props.length,
13 valsLength = values.length,
16 while (++index < length) {
17 assignFunc(result, props[index], index < valsLength ? values[index] : undefined);
22 module.exports = baseZipObject;