Skip to content

Instantly share code, notes, and snippets.

@electerious
Created September 20, 2015 16:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save electerious/9b0c3a549cb67395bb85 to your computer and use it in GitHub Desktop.
Save electerious/9b0c3a549cb67395bb85 to your computer and use it in GitHub Desktop.
const type = (data) => {
return Object.prototype.toString.call(data).replace(/^\[object (.+)\]$/, "$1").toLowerCase()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment