notObjectWith()function

notObjectWith(left: unknown, right: ImmutableObject): boolean
ParamType
leftunknown
The value to check. required
rightImmutableObject
The object whose props left must contain. required
Return
boolean
true if left is not an object or is missing one or more props of right.

Is unknown value left not an object or missing one or more props from right?

Examples

notObjectWith({ a: 1 }, { b: 2 }) // true