mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-05 09:27:49 +00:00
Remove remaining rest helper use.
This commit is contained in:
5
zip.js
5
zip.js
@@ -1,4 +1,3 @@
|
||||
import baseRest from './_baseRest.js';
|
||||
import unzip from './unzip.js';
|
||||
|
||||
/**
|
||||
@@ -17,6 +16,8 @@ import unzip from './unzip.js';
|
||||
* _.zip(['a', 'b'], [1, 2], [true, false]);
|
||||
* // => [['a', 1, true], ['b', 2, false]]
|
||||
*/
|
||||
const zip = baseRest(unzip);
|
||||
function zip(...arays) {
|
||||
return unzip(arrays);
|
||||
}
|
||||
|
||||
export default zip;
|
||||
|
||||
Reference in New Issue
Block a user