We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
Solve the try-catch hell using golang style error handling.
npm i @klipitkas/await-to --save
import{to}from'await-to';constdoSomething=()=>{const[data,error]=awaitto(resolveOrRejectSomePromise());if(error){thrownewError("Whoops!");}returndata;}
npm run test