Skip to content

Instantly share code, notes, and snippets.

@demonixis
Last active August 29, 2015 13:57
Show Gist options
  • Save demonixis/9599633 to your computer and use it in GitHub Desktop.
Save demonixis/9599633 to your computer and use it in GitHub Desktop.
typeof(+undefined|0)
typeof(+NaN|0)
typeof(+null|0)
typeof(+0|0)
typeof(+[]|0)
typeof(+{}|0)
typeof(+"2"|0)
typeof(+1|0)
// +yourValue|0
// Return number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment