😇 VaiTra 😇
Safe place for your functions to run
You don't need VaiTra. I wrote this simple helper function because I'm too lazy to rewrite it for every project.
But hey, are you a lazy developer too? Why don't you try it? 😊
Installation
yarn
$ yarn add vaitra
npm
$ npm install --save vaitra
1991 internet fan
Usage
I don't really like try/catch
syntax, but I really enjoy promises and async/await
.
Async
{ return x + y;} async { const data error = await console // 15 console // undefined }
Sync
{ return x + y;} const data error = console // 15console // undefined