Updated to Drupal 8.6.4, which is PHP 7.3 friendly. Also updated HTMLaw library....
[yaffs-website] / node_modules / grunt-legacy-util / node_modules / lodash / _baseZipObject.js
1 /**
2  * This base implementation of `_.zipObject` which assigns values using `assignFunc`.
3  *
4  * @private
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.
9  */
10 function baseZipObject(props, values, assignFunc) {
11   var index = -1,
12       length = props.length,
13       valsLength = values.length,
14       result = {};
15
16   while (++index < length) {
17     assignFunc(result, props[index], index < valsLength ? values[index] : undefined);
18   }
19   return result;
20 }
21
22 module.exports = baseZipObject;