mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-01 07:47: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
|
||||
}
|
||||
|
||||
if (isTypedArray(value)) {
|
||||
return result;
|
||||
}
|
||||
|
||||
const keysFunc = isFull
|
||||
? (isFlat ? getAllKeysIn : getAllKeys)
|
||||
: (isFlat ? keysIn : keys)
|
||||
|
||||
Reference in New Issue
Block a user