mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 23:57:49 +00:00
Fix _.zip use with arguments objects.
This commit is contained in:
2
dist/lodash.underscore.js
vendored
2
dist/lodash.underscore.js
vendored
@@ -2026,7 +2026,7 @@
|
||||
*/
|
||||
function zip() {
|
||||
var index = -1,
|
||||
length = isArray(length = max(arguments, 'length')) && length.length || 0,
|
||||
length = isObject(length = max(arguments, 'length')) && length.length || 0,
|
||||
result = Array(length);
|
||||
|
||||
while (++index < length) {
|
||||
|
||||
@@ -3833,7 +3833,7 @@
|
||||
function zip() {
|
||||
var array = arguments.length > 1 ? arguments : arguments[0],
|
||||
index = -1,
|
||||
length = isArray(length = max(array, 'length')) && length.length || 0,
|
||||
length = isObject(length = max(array, 'length')) && length.length || 0,
|
||||
result = Array(length);
|
||||
|
||||
while (++index < length) {
|
||||
|
||||
Reference in New Issue
Block a user