Add _.merge. tests.

This commit is contained in:
jdalton
2015-02-19 00:14:59 -08:00
parent 10ee74d872
commit 89ed40e4a4
2 changed files with 32 additions and 1 deletions

View File

@@ -2548,7 +2548,7 @@
* @returns {Object} Returns the destination object.
*/
function baseMerge(object, source, customizer, stackA, stackB) {
if (!isObjectLike(object)) {
if (!isObject(object)) {
return object;
}
var isSrcArr = isLength(source.length) && (isArray(source) || isTypedArray(source));