Replace getTag implementation by the one from baseGetTag (remove workarounds) (#4115)

This commit is contained in:
Luiz Américo
2018-12-11 12:53:23 -03:00
committed by John-David Dalton
parent c77650a17b
commit aa1d7d870d
15 changed files with 32 additions and 83 deletions

View File

@@ -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