Function: shallowEqual()
ts
function shallowEqual(first, second): boolean;Defined in: core/src/paths/equality.ts:15
Whether two values are equal one level deep. Arrays are compared item by item and plain objects by their own keys, each member by reference. A Date is compared by its time, and any other object by reference.
Parameters
| Parameter | Type |
|---|---|
first | unknown |
second | unknown |
Returns
boolean