Created
October 27, 2018 16:31
-
-
Save alizhdanov/10c4b96f9a109a096f5e3e176d90684f 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
function parseValue(value) { | |
if (typeof value !== 'boolean') { | |
throw new TypeError( | |
`Boolean cannot represent a non boolean value: ${inspect(value)}`, | |
); | |
} | |
return value; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment