Skip to content

Instantly share code, notes, and snippets.

@JoeChapman
Created February 22, 2012 12:28
Show Gist options
  • Save JoeChapman/1884739 to your computer and use it in GitHub Desktop.
Save JoeChapman/1884739 to your computer and use it in GitHub Desktop.
Function to return real type of the object
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