Skip to content

Instantly share code, notes, and snippets.

@jefo
Created November 30, 2015 09:53
Show Gist options
  • Save jefo/3c08f7b5f837e258b4e9 to your computer and use it in GitHub Desktop.
Save jefo/3c08f7b5f837e258b4e9 to your computer and use it in GitHub Desktop.
function whatDecimalSeparator() {
var n = 1.1;
n = n.toLocaleString().substring(1, 2);
return n;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment