@floss/yolo
v0.1.0
Published
Does it throw an error? I don't know. YOLO.
Downloads
2
Maintainers
Readme
@floss/yolo
Checklist to see if this is for you:
- I want to run some code
- I give no less than zero nasty words about any errors
- Give me whatever is returned or keep quiet
import yolo from "@floss/yolo";
const response = yolo(function () {
let result;
// here lies some dark stuff...
return result
});
console.log(response);
// Alt 1. undefined (if an error was thrown)
// Alt 2. anything (if your code was somehow error-free)