Created
January 5, 2018 23:21
-
-
Save haikyuu/10ff10fc888ec6614f86cc23387f0ff3 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 type = val => | |
val === null | |
? 'Null' | |
: val === undefined | |
? 'Undefined' | |
: Object.prototype.toString.call(val).slice(8, -1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment