Created
August 8, 2012 12:50
-
-
Save ando19721226/3294876 to your computer and use it in GitHub Desktop.
get object type
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(obj) { | |
return Object.prototype.toString.call(obj).slice(8, -1); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment