CommonDeepIsSubset
Callable
Parameters
subRec: unknown
The subset-containg object to compare
superRec: T
The superset-containg object to compare
Returns subRec is Partial<T>
- Whether
subRecis a subset ofsuperRecup to arbitrarily deeply nested property values
A simple deep equality check function which checks whether two objects are equal for all properties in
subRec. The function traverses recursively into objects and arrays to check for equality. Primitives and simple types are considered equal as defined by===.