Skip to content

Instantly share code, notes, and snippets.

@bsitruk
Created February 22, 2017 21:10
Show Gist options
  • Save bsitruk/5d283ef4770b604964e32452b48a4e99 to your computer and use it in GitHub Desktop.
Save bsitruk/5d283ef4770b604964e32452b48a4e99 to your computer and use it in GitHub Desktop.
Fastest way to convert a string to a number
var numberOne = +'1'; // 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment