Enumerable symbol properties are now compared.
The NaN is now compared using the SameValueZero comparison.
NaN
The Error names and messages are now properly compared.
Error
The Set and Map content is also compared.
Set
Map
Objects with circular references can be used as inputs now.
Typed array slices are handled correctly now.
Handle non-Uint8Array typed arrays correctly.
Uint8Array
新增于: v1.2.0
actual
expected
message
测试 actual 参数和 expected 参数之间的深度相等。 深度相等意味着子对象的可枚举的自身属性也通过以下规则进行递归计算。
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.