This requires equality of the element values, where element equality means === returning true.
This allows you to compare the content of a Buffer, Uint8Array or number[], ignoring the specific type.
As a consequence, this returns different results than Jasmine's toEqual, which ensures elements have the same type.
Checks if
a
starts with the contents ofb
.This requires equality of the element values, where element equality means
===
returningtrue
.This allows you to compare the content of a Buffer, Uint8Array or number[], ignoring the specific type. As a consequence, this returns different results than Jasmine's
toEqual
, which ensures elements have the same type.