mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-11 11:27:50 +00:00
Cleanup array type juggling.
This commit is contained in:
@@ -2661,9 +2661,7 @@
|
|||||||
}
|
}
|
||||||
stack.set(value, result);
|
stack.set(value, result);
|
||||||
|
|
||||||
if (!isArr) {
|
var props = isArr ? undefined : (isFull ? getAllKeys : keys)(value);
|
||||||
var props = isFull ? getAllKeys(value) : keys(value);
|
|
||||||
}
|
|
||||||
arrayEach(props || value, function(subValue, key) {
|
arrayEach(props || value, function(subValue, key) {
|
||||||
if (props) {
|
if (props) {
|
||||||
key = subValue;
|
key = subValue;
|
||||||
@@ -3573,9 +3571,7 @@
|
|||||||
if (object === source) {
|
if (object === source) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (!(isArray(source) || isBuffer(source) || isTypedArray(source))) {
|
var props = isArray(source) ? undefined : baseKeysIn(source);
|
||||||
var props = baseKeysIn(source);
|
|
||||||
}
|
|
||||||
arrayEach(props || source, function(srcValue, key) {
|
arrayEach(props || source, function(srcValue, key) {
|
||||||
if (props) {
|
if (props) {
|
||||||
key = srcValue;
|
key = srcValue;
|
||||||
|
|||||||
Reference in New Issue
Block a user