-
-
Save suzdalnitski/bafb5b4132c78d1a4d05326f85130029 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
const req = name => { | |
throw new Error(`The value ${name} is required.`); | |
}; | |
const doStuff = ( stuff = req('stuff') ) => { | |
... | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment