assertNullish()function
assertNullish(value: Nullish<T>, caller: AnyCaller = assertNullish): asserts value is T
| Param | Type | |
|---|---|---|
value | Nullish<T> | The value to assert. required |
caller | AnyCaller | Function used to attribute a thrown error to the calling site. Defaults to assertNullish |
| Return | |
|---|---|
asserts value is T | Nothing; narrows value to T. |
| Throws | |
|---|---|
unknown |
Assert that a value is nullish (null or undefined).