mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 09:47:48 +00:00
Replace getTag implementation by the one from baseGetTag (remove workarounds) (#4115)
This commit is contained in:
committed by
John-David Dalton
parent
c77650a17b
commit
aa1d7d870d
@@ -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 baseGetTag from './baseGetTag.js'
|
||||
import getTag from './getTag.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 : baseGetTag(object)
|
||||
let othTag = othIsArr ? arrayTag : baseGetTag(other)
|
||||
let objTag = objIsArr ? arrayTag : getTag(object)
|
||||
let othTag = othIsArr ? arrayTag : getTag(other)
|
||||
|
||||
objTag = objTag == argsTag ? objectTag : objTag
|
||||
othTag = othTag == argsTag ? objectTag : othTag
|
||||
|
||||
Reference in New Issue
Block a user