Skip to content

Instantly share code, notes, and snippets.

@amwmedia
Last active December 28, 2015 00:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amwmedia/7414410 to your computer and use it in GitHub Desktop.
Save amwmedia/7414410 to your computer and use it in GitHub Desktop.
nice little type checking function
function type(o) {
o = Object.prototype.toString.call(o);
return o.match(/ (.*)]/)[1].toLowerCase();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment