mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 03:17:49 +00:00
bugfixed in zip & concat funcs (#2971)
This commit is contained in:
committed by
John-David Dalton
parent
ac53cc7d69
commit
9d445ec238
@@ -23,7 +23,7 @@ import copyArray from './.internal/copyArray.js';
|
|||||||
* // => [1]
|
* // => [1]
|
||||||
*/
|
*/
|
||||||
function concat(array, ...values) {
|
function concat(array, ...values) {
|
||||||
return arrayPush(Array.isArray(array) ? copyArray(array) : [array], baseFlatten(args, 1));
|
return arrayPush(Array.isArray(array) ? copyArray(array) : [array], baseFlatten(values, 1));
|
||||||
}
|
}
|
||||||
|
|
||||||
export default concat;
|
export default concat;
|
||||||
|
|||||||
2
zip.js
2
zip.js
@@ -15,7 +15,7 @@ import unzip from './unzip.js';
|
|||||||
* zip(['a', 'b'], [1, 2], [true, false]);
|
* zip(['a', 'b'], [1, 2], [true, false]);
|
||||||
* // => [['a', 1, true], ['b', 2, false]]
|
* // => [['a', 1, true], ['b', 2, false]]
|
||||||
*/
|
*/
|
||||||
function zip(...arays) {
|
function zip(...arrays) {
|
||||||
return unzip(arrays);
|
return unzip(arrays);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user