mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-31 23:37:49 +00:00
Remove isArrayLike helper.
This commit is contained in:
committed by
jdalton
parent
d1761558b4
commit
fb2a20201c
@@ -2461,10 +2461,10 @@
|
||||
* @returns {Object} Returns the destination object.
|
||||
*/
|
||||
function baseMerge(object, source, customizer, stackA, stackB) {
|
||||
var isSrcArr = isArrayLike(source);
|
||||
var isSrcArr = isArray(source) || isTypedArray(source);
|
||||
|
||||
(isSrcArr ? arrayEach : baseForOwn)(source, function(srcValue, key, source) {
|
||||
var isArr = isArrayLike(srcValue),
|
||||
var isArr = isArray(srcValue) || isTypedArray(srcValue),
|
||||
isObj = isPlainObject(srcValue),
|
||||
value = object[key];
|
||||
|
||||
@@ -3664,18 +3664,6 @@
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if `value` is an array-like object.
|
||||
*
|
||||
* @private
|
||||
* @param {*} value The value to check.
|
||||
* @returns {boolean} Returns `true` if `value` is an array-like object, else `false`.
|
||||
*/
|
||||
function isArrayLike(value) {
|
||||
return (isObjectLike(value) && isLength(value.length) &&
|
||||
(arrayLikeTags[objToString.call(value)] || (!lodash.support.argsTag && isArguments(value)))) || false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if `func` is eligible for `this` binding.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user