mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 07:47:49 +00:00
Bump to v3.6.0.
This commit is contained in:
11
array/zip.js
11
array/zip.js
@@ -1,3 +1,4 @@
|
||||
import restParam from '../function/restParam';
|
||||
import unzip from './unzip';
|
||||
|
||||
/**
|
||||
@@ -15,14 +16,6 @@ import unzip from './unzip';
|
||||
* _.zip(['fred', 'barney'], [30, 40], [true, false]);
|
||||
* // => [['fred', 30, true], ['barney', 40, false]]
|
||||
*/
|
||||
function zip() {
|
||||
var length = arguments.length,
|
||||
array = Array(length);
|
||||
|
||||
while (length--) {
|
||||
array[length] = arguments[length];
|
||||
}
|
||||
return unzip(array);
|
||||
}
|
||||
var zip = restParam(unzip);
|
||||
|
||||
export default zip;
|
||||
|
||||
Reference in New Issue
Block a user