mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-10 02:47:50 +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() {
|
function zip() {
|
||||||
var index = -1,
|
var index = -1,
|
||||||
length = isArray(length = max(arguments, 'length')) && length.length || 0,
|
length = isObject(length = max(arguments, 'length')) && length.length || 0,
|
||||||
result = Array(length);
|
result = Array(length);
|
||||||
|
|
||||||
while (++index < length) {
|
while (++index < length) {
|
||||||
|
|||||||
@@ -3833,7 +3833,7 @@
|
|||||||
function zip() {
|
function zip() {
|
||||||
var array = arguments.length > 1 ? arguments : arguments[0],
|
var array = arguments.length > 1 ? arguments : arguments[0],
|
||||||
index = -1,
|
index = -1,
|
||||||
length = isArray(length = max(array, 'length')) && length.length || 0,
|
length = isObject(length = max(array, 'length')) && length.length || 0,
|
||||||
result = Array(length);
|
result = Array(length);
|
||||||
|
|
||||||
while (++index < length) {
|
while (++index < length) {
|
||||||
|
|||||||
Reference in New Issue
Block a user