Permalink
Cannot retrieve contributors at this time
24 lines (22 sloc)
664 Bytes
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
codeql-action/node_modules/lodash/zipObject.js
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var assignValue = require('./_assignValue'), | |
baseZipObject = require('./_baseZipObject'); | |
/** | |
* This method is like `_.fromPairs` except that it accepts two arrays, | |
* one of property identifiers and one of corresponding values. | |
* | |
* @static | |
* @memberOf _ | |
* @since 0.4.0 | |
* @category Array | |
* @param {Array} [props=[]] The property identifiers. | |
* @param {Array} [values=[]] The property values. | |
* @returns {Object} Returns the new object. | |
* @example | |
* | |
* _.zipObject(['a', 'b'], [1, 2]); | |
* // => { 'a': 1, 'b': 2 } | |
*/ | |
function zipObject(props, values) { | |
return baseZipObject(props || [], values || [], assignValue); | |
} | |
module.exports = zipObject; |