Fail-fast on missing required arguments in JavaScript using default values that throw
https://ar.al/2020/03/23/fail-fast-on-missing-required-arguments-in-javascript-using-default-values-that-throw/
Update: I just chucked this up on npm so you can use it with:
npm i @small-tech/required
(See what I did there?) ;)
Blog post: https://ar.al/2020/03/23/fail-fast-on-missing-required-arguments-in-javascript-using-default-values-that-throw/
Mastodon is the best way to keep up with what's happening.
Follow anyone across the fediverse and see it all in chronological order. No algorithms, ads, or clickbait in sight.