Skip to content

isShallowEqual()

Performs a shallow comparison for arrays, plain objects, dates and regular expressions.

Example:

ts
isShallowEqual({ id: 1 }, { id: 1 }); // true

Released under the MIT License.