Updated to Drupal 8.6.4, which is PHP 7.3 friendly. Also updated HTMLaw library....
[yaffs-website] / node_modules / grunt-legacy-log-utils / node_modules / lodash / zipObject.js
1 var assignValue = require('./_assignValue'),
2     baseZipObject = require('./_baseZipObject');
3
4 /**
5  * This method is like `_.fromPairs` except that it accepts two arrays,
6  * one of property names and one of corresponding values.
7  *
8  * @static
9  * @memberOf _
10  * @category Array
11  * @param {Array} [props=[]] The property names.
12  * @param {Array} [values=[]] The property values.
13  * @returns {Object} Returns the new object.
14  * @example
15  *
16  * _.zipObject(['a', 'b'], [1, 2]);
17  * // => { 'a': 1, 'b': 2 }
18  */
19 function zipObject(props, values) {
20   return baseZipObject(props || [], values || [], assignValue);
21 }
22
23 module.exports = zipObject;