UNPKG

rc-js-util

Version:

A collection of TS and C++ utilities to help writing performant and correct applications, achieved through strict typing and (removable) invariant checking.

19 lines (10 loc) 562 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [rc-js-util](./rc-js-util.md) &gt; [\_Promise](./rc-js-util._promise.md) &gt; [rejectNull](./rc-js-util._promise.rejectnull.md) ## \_Promise.rejectNull property Returns a Promise of rejection with the supplied error if the value is `null` or `undefined`<!-- -->. **Signature:** ```typescript static readonly rejectNull: typeof promiseRejectNull; ``` ## Remarks See [promiseRejectNull()](./rc-js-util.promiserejectnull.md)<!-- -->.