From 8592f4163f32bc58390fbabb447cbabfd1269e8c Mon Sep 17 00:00:00 2001 From: John-David Dalton Date: Mon, 3 Oct 2016 17:07:45 -0700 Subject: [PATCH] Fix `_.merge` regression with buffers. [closes #2699] --- lodash.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lodash.js b/lodash.js index 7c2d6a2a3..7b8fd7a35 100644 --- a/lodash.js +++ b/lodash.js @@ -3643,7 +3643,9 @@ } else if (isTyped) { isCommon = false; - newValue = cloneTypedArray(srcValue, true); + newValue = isBuffer(srcValue) + ? cloneBuffer(srcValue, true) + : cloneTypedArray(srcValue, true); } else { newValue = [];