Created
January 22, 2018 15:45
-
-
Save JakeTheCorn/7ad30d37488d2b2c6b7b30c59459bf0b 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 getType(elem) { | |
return Object.prototype.toString.call(elem).slice(8, -1); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment