util.isPartialDeepStrictEqual(val1, val2)
如果 val1 和 val2 之间存在部分深度严格相等,则返回 true。否则,返回 false。
🌐 Returns true if there is partial deep strict equality between val1 and
val2. Otherwise, returns false.
“部分”平等意味着只会比较 val2 上存在的属性。
有关部分深层严格相等的更多信息,请参见 assert.partialDeepStrictEqual()。
🌐 See assert.partialDeepStrictEqual() for more information about partial
deep strict equality.