throw-if-missing
Enforce required parameters or options in ES6.
Based on An Easier Way to Enforce Required Parameters in ES6.
Installation
npm install throw-if-missing
Quickstart
const x = const login = {} // ==> Error: Missing password
License
WTFPL – Do What the F*ck You Want to Public License.
Made with ❤️ by @MarkTiedemann.