From 50860fded29c0e1a269e042817358b70d94dcaa8 Mon Sep 17 00:00:00 2001 From: Todd Wolfson Date: Sun, 13 May 2018 09:19:32 -0700 Subject: [PATCH] Added short circuit for typed arrays (#3786) --- .internal/baseClone.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.internal/baseClone.js b/.internal/baseClone.js index 8089ad8d4..86d291ce3 100644 --- a/.internal/baseClone.js +++ b/.internal/baseClone.js @@ -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)