@gradeup/asde
v3.0.1
Published
Easy error handling with async await and destructuring
Readme
asde

Easy error handling with async await and destructuring for promises
Install
$ npm install @gradeup/asdeUsage
const asde = require('@gradeup/asde');
const promise = Promise.reject(new Error('Something went wrong'));
const fn = async () => await asde(p);
//=> [{ message: 'Something went wrong' }, null]API
asde(input)
input
Type: Promise
Promise or any thenable to resolve
License
MIT © Nikhil Srivastava
