# isEqual
# Description
执行深比较来确定两者的值是否相等。
# Params
(value, other)
# Return
Boolean
# Depend
import baseIsEqual from './.internal/baseIsEqual.js'
# Code
function isEqual(value, other) {
return baseIsEqual(value, other)
}
# Analyze
本质就是调用了 baseIsEqual 方法,所以具体可查看 baseIsEqual
# Example
const object = { 'a': 1 }
const other = { 'a': 1 }
isEqual(object, other)
// => true
object === other
// => false
← isEmpty isEqualWith →