up.util.isEqual(a, b)
JavaScript function
Returns whether the two arguments are equal by value.
Comparison protocol
- By default
up.util.isEqual()can compare strings, numbers, array-like values, plain objects andDateobjects. - To make the comparison protocol work with user-defined classes,
see
up.util.isEqual.key. - Objects without a defined comparison protocol are
compared by reference (
===).
Parameters
a
required
The first value to compare.
Type: any
b
required
The second value to compare.
Type: any
Return value
Whether the arguments are considered equal.
Type: boolean