diff --git a/.internal/baseIsEqualDeep.js b/.internal/baseIsEqualDeep.js index 27749cd01..cb9337bdd 100644 --- a/.internal/baseIsEqualDeep.js +++ b/.internal/baseIsEqualDeep.js @@ -2,7 +2,7 @@ import Stack from './Stack.js' import equalArrays from './equalArrays.js' import equalByTag from './equalByTag.js' import equalObjects from './equalObjects.js' -import getTag from './getTag.js' +import baseGetTag from './baseGetTag.js' import isBuffer from '../isBuffer.js' import isTypedArray from '../isTypedArray.js' @@ -34,8 +34,8 @@ const hasOwnProperty = Object.prototype.hasOwnProperty function baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) { let objIsArr = Array.isArray(object) const othIsArr = Array.isArray(other) - let objTag = objIsArr ? arrayTag : getTag(object) - let othTag = othIsArr ? arrayTag : getTag(other) + let objTag = objIsArr ? arrayTag : baseGetTag(object) + let othTag = othIsArr ? arrayTag : baseGetTag(other) objTag = objTag == argsTag ? objectTag : objTag othTag = othTag == argsTag ? objectTag : othTag diff --git a/isArguments.js b/isArguments.js index 0bfdbe12c..3051a50b9 100644 --- a/isArguments.js +++ b/isArguments.js @@ -1,4 +1,4 @@ -import getTag from './.internal/getTag.js' +import baseGetTag from './.internal/baseGetTag.js' import isObjectLike from './isObjectLike' /** @@ -17,7 +17,7 @@ import isObjectLike from './isObjectLike' * // => false */ function isArguments(value) { - return isObjectLike(value) && getTag(value) == '[object Arguments]' + return isObjectLike(value) && baseGetTag(value) == '[object Arguments]' } export default isArguments diff --git a/isString.js b/isString.js index b9ec3ae59..37aaa9066 100644 --- a/isString.js +++ b/isString.js @@ -1,4 +1,4 @@ -import getTag from './.internal/getTag.js' +import baseGetTag from './.internal/baseGetTag.js' /** * Checks if `value` is classified as a `String` primitive or object. @@ -17,7 +17,7 @@ import getTag from './.internal/getTag.js' */ function isString(value) { const type = typeof value - return type == 'string' || (type == 'object' && value != null && !Array.isArray(value) && getTag(value) == '[object String]') + return type == 'string' || (type == 'object' && value != null && !Array.isArray(value) && baseGetTag(value) == '[object String]') } export default isString diff --git a/isSymbol.js b/isSymbol.js index 8ea537f4e..570981bf2 100644 --- a/isSymbol.js +++ b/isSymbol.js @@ -1,4 +1,4 @@ -import getTag from './.internal/getTag.js' +import baseGetTag from './.internal/baseGetTag.js' /** * Checks if `value` is classified as a `Symbol` primitive or object. @@ -17,7 +17,7 @@ import getTag from './.internal/getTag.js' */ function isSymbol(value) { const type = typeof value - return type == 'symbol' || (type == 'object' && value != null && getTag(value) == '[object Symbol]') + return type == 'symbol' || (type == 'object' && value != null && baseGetTag(value) == '[object Symbol]') } export default isSymbol diff --git a/isTypedArray.js b/isTypedArray.js index 564ec0107..c41e9f854 100644 --- a/isTypedArray.js +++ b/isTypedArray.js @@ -1,4 +1,4 @@ -import getTag from './.internal/getTag.js' +import baseGetTag from './.internal/baseGetTag.js' import nodeTypes from './.internal/nodeTypes.js' import isObjectLike from './isObjectLike' @@ -25,6 +25,6 @@ const nodeIsTypedArray = nodeTypes && nodeTypes.isTypedArray */ const isTypedArray = nodeIsTypedArray ? (value) => nodeIsTypedArray(value) - : (value) => isObjectLike(value) && reTypedTag.test(getTag(value)) + : (value) => isObjectLike(value) && reTypedTag.test(baseGetTag(value)) export default isTypedArray