@unction/catchp
TypeScript icon, indicating that this package has built-in type declarations

4.1.4 • Public • Published

@unction/catchP

Tests Stability Dependencies

MapperFunctionType<C, B> => Promise => Promise<A | B>

A port of the Promise.prototype.catch() function.

catchP(
  (exception) => console.error(exception)
)(Promise.all([fetchUser, fetchProject]))

Credit: @keithamus

Readme

Keywords

Package Sidebar

Install

npm i @unction/catchp

Weekly Downloads

0

Version

4.1.4

License

ISC

Unpacked Size

17.4 kB

Total Files

25

Last publish

Collaborators

  • krainboltgreene