@jlmorgan/promise-extras
v2.1.1
Published
Collection of extras for Promises.
Downloads
4
Maintainers
Readme
Promise Extras
Collection of extras for Promises.
Installation
Using npm
:
npm install --save @jlmorgan/promise-extras
Usage
Node.js
const { rejectIf } = require("@jlmorgan/promise-extras");
// or
const { resolveIf } = require("@jlmorgan/promise-extras/resolveIf");
Typescript
import { rejectIf } from "@jlmorgan/promise-extras";
// or
import { resolveIf } from "@jlmorgan/promise-extras/resolveIf";