Created
September 20, 2016 08:52
-
-
Save Alex-xd/3a1a48975d7269b46cd62d0225a90123 to your computer and use it in GitHub Desktop.
最有用的JS类型检测!
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 _typeof(something){ | |
return Object.prototype.toString.call(something).slice(8,-1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment