Home > rc-js-util > promiseRejectFalsey
Returns a Promise of rejection with the supplied error if the value
is falsy.
Signature:
export declare function promiseRejectFalsey(value: Promise<boolean> | boolean, error: unknown): Promise<void>;
Parameter | Type | Description |
---|---|---|
value | Promise<boolean> | boolean | |
error | unknown |
Returns:
Promise<void>