Urara-Blog/node_modules/.pnpm-store/v3/files/71/af666f0ad3721bdf90b71f736d746cf7a15bc089c16fd6dbfcd834b5bba037c810574d3afcd8de88f765f2803bfa83d107ea7d56b9761a2d8618d85303a75f
2022-08-14 01:14:53 +08:00

22 lines
609 B
Text

var baseRest = require('./_baseRest'),
unzip = require('./unzip');
/**
* Creates an array of grouped elements, the first of which contains the
* first elements of the given arrays, the second of which contains the
* second elements of the given arrays, and so on.
*
* @static
* @memberOf _
* @since 0.1.0
* @category Array
* @param {...Array} [arrays] The arrays to process.
* @returns {Array} Returns the new array of grouped elements.
* @example
*
* _.zip(['a', 'b'], [1, 2], [true, false]);
* // => [['a', 1, true], ['b', 2, false]]
*/
var zip = baseRest(unzip);
module.exports = zip;