Last active
May 7, 2017 14:48
-
-
Save odykyi/410d88cede0a5cb534e76fbbd71848ff to your computer and use it in GitHub Desktop.
isRequired.js
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const isRequired = () => { throw new Error('param is required'); }; | |
const hello = (name = isRequired()) => { console.log(`hello ${name}`) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment