Skip to content

Instantly share code, notes, and snippets.

@ando19721226
Created August 8, 2012 12:50
Show Gist options
  • Save ando19721226/3294876 to your computer and use it in GitHub Desktop.
Save ando19721226/3294876 to your computer and use it in GitHub Desktop.
get object type
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