mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 09:47:48 +00:00
Correct the resolution of length in _.zip.
This commit is contained in:
@@ -3833,7 +3833,7 @@
|
||||
function zip() {
|
||||
var array = arguments.length > 1 ? arguments : arguments[0],
|
||||
index = -1,
|
||||
length = (array && array.length) ? max(array, 'length').length : 0,
|
||||
length = isArray(length = max(array, 'length')) && length.length || 0,
|
||||
result = Array(length);
|
||||
|
||||
while (++index < length) {
|
||||
|
||||
Reference in New Issue
Block a user