notObjectWith()function
notObjectWith(left: unknown, right: ImmutableObject): boolean
| Param | Type | |
|---|---|---|
left | unknown | The value to check. required |
right | ImmutableObject | 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