CommonDeepIsSubset<T>(subRec: unknown, superRec: T): subRec is Partial<T>
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 ===.
Type parameters
T
Parameters
subRec: unknown
The subset-containg object to compare
superRec: T
The superset-containg object to compare
Returns subRec is Partial<T>
Whether subRec is a subset of superRec up 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===
.