Created
April 16, 2019 15:57
-
-
Save parwatcodes/b5c1cf7eb8b1eb94c909f72f77202467 to your computer and use it in GitHub Desktop.
This file contains 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
console.log([false, null, 2, 0, undefined].filter(Boolean)); | |
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