mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 18:17:48 +00:00
Minor tweak to condition in _.zipObject.
This commit is contained in:
@@ -5304,7 +5304,7 @@
|
|||||||
length = props ? props.length : 0,
|
length = props ? props.length : 0,
|
||||||
result = {};
|
result = {};
|
||||||
|
|
||||||
if (!values && length && !isArray(props[0])) {
|
if (length && !values && !isArray(props[0])) {
|
||||||
values = [];
|
values = [];
|
||||||
}
|
}
|
||||||
while (++index < length) {
|
while (++index < length) {
|
||||||
|
|||||||
Reference in New Issue
Block a user