现在比较可枚举的符号属性。
现在使用 SameValueZero 比较来比较 NaN。
NaN
现在可以正确地处理类型化数组切片。
现在可以将具有循环引用的对象用作输入。
正确地处理非 Uint8Array 类型的数组。
Uint8Array
新增于: v1.2.0
actual
expected
message
测试 actual 和 expected 参数之间的深度相等。 "深度"相等意味着子对象的可枚举"自有"属性也按照以下规则递归地评估。
Enumerable symbol properties are now compared.
The NaN is now compared using the SameValueZero comparison.
The Error names and messages are now properly compared
Error
The Set and Map content is also compared
Set
Map
Typed array slices are handled correctly now.
Objects with circular references can be used as inputs now.
Handle non-Uint8Array typed arrays correctly.
Added in: v1.2.0
Tests for deep equality between the actual and expected parameters. "Deep" equality means that the enumerable "own" properties of child objects are recursively evaluated also by the following rules.