If a is an object that contains the isEqualTag, then this function
will call that method and return whatever that method returned. If b
contains the isEqualTag, it will attempt the same with b. This way,
you can define your own classes with custom equality operators. See the
isEqualTag for more information.
Built-in JavaScript objects are just checked as if they were encoded to a
JSON format and the resulting ouput is identical. For exmple, two plain
JavaScript are the same if their enumerable keys contain the same values.
Check whether two values are the same
If
a
is an object that contains the isEqualTag, then this function will call that method and return whatever that method returned. Ifb
contains the isEqualTag, it will attempt the same withb
. This way, you can define your own classes with custom equality operators. See the isEqualTag for more information.Built-in JavaScript objects are just checked as if they were encoded to a JSON format and the resulting ouput is identical. For exmple, two plain JavaScript are the same if their enumerable keys contain the same values.