Last active
December 16, 2015 21:29
-
-
Save is8r/5500507 to your computer and use it in GitHub Desktop.
数値に3桁毎にカンマを入れる
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
number2Price = (n) -> | |
n.toString().replace /(\d)(?=(\d\d\d)+$)/g, '$1,' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment