mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-09 18:37:50 +00:00
Fix _.merge regression with buffers. [closes #2699]
This commit is contained in:
@@ -3643,7 +3643,9 @@
|
|||||||
}
|
}
|
||||||
else if (isTyped) {
|
else if (isTyped) {
|
||||||
isCommon = false;
|
isCommon = false;
|
||||||
newValue = cloneTypedArray(srcValue, true);
|
newValue = isBuffer(srcValue)
|
||||||
|
? cloneBuffer(srcValue, true)
|
||||||
|
: cloneTypedArray(srcValue, true);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
newValue = [];
|
newValue = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user