现在也比较正则表达式的 lastIndex 属性。
现在比较可枚举的符号属性。
现在使用 SameValueZero 比较来比较 NaN。
NaN
现在可以正确地比较 Error 名称和消息。
Error
也比较 Set 和 Map 的内容。
Set
Map
现在可以将具有循环引用的对象用作输入。
现在可以正确地处理类型化数组切片。
正确地处理非 Uint8Array 类型的数组。
Uint8Array
新增于: v1.2.0
actual
expected
message
测试 actual 和 expected 参数之间的深度相等。 "深度"相等意味着子对象的可枚举"自有"属性也按照以下规则递归地评估。
Regular expressions lastIndex property is now compared as well.
Enumerable symbol properties are now compared.
The NaN is now compared using the SameValueZero comparison.
The Error names and messages are now properly compared.
The Set and Map content is also compared.
Objects with circular references can be used as inputs now.
Typed array slices are handled correctly 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.