Created
February 22, 2012 12:28
-
-
Save JoeChapman/1884739 to your computer and use it in GitHub Desktop.
Function to return real type of the object
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
var getRealType = function (o) { | |
return Object.prototype.toString.call(o).match(/\w+/g)[1].toLowerCase(); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment