bugfixed in zip & concat funcs (#2971)

This commit is contained in:
ecmadao
2017-02-04 01:55:33 +08:00
committed by John-David Dalton
parent ac53cc7d69
commit 9d445ec238
2 changed files with 2 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ import copyArray from './.internal/copyArray.js';
* // => [1]
*/
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;

2
zip.js
View File

@@ -15,7 +15,7 @@ import unzip from './unzip.js';
* zip(['a', 'b'], [1, 2], [true, false]);
* // => [['a', 1, true], ['b', 2, false]]
*/
function zip(...arays) {
function zip(...arrays) {
return unzip(arrays);
}