mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 10:27:49 +00:00
Added short circuit for typed arrays (#3786)
This commit is contained in:
committed by
John-David Dalton
parent
79dc90dfcb
commit
50860fded2
@@ -218,6 +218,10 @@ function baseClone(value, bitmask, customizer, key, object, stack) {
|
|||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isTypedArray(value)) {
|
||||||
|
return result;
|
||||||
|
}
|
||||||
|
|
||||||
const keysFunc = isFull
|
const keysFunc = isFull
|
||||||
? (isFlat ? getAllKeysIn : getAllKeys)
|
? (isFlat ? getAllKeysIn : getAllKeys)
|
||||||
: (isFlat ? keysIn : keys)
|
: (isFlat ? keysIn : keys)
|
||||||
|
|||||||
Reference in New Issue
Block a user