Adding commas to numbers
I could not find any good utils out there to add commas to numbers in JavaScript. So I wrote one:
I found a Ruby example a long time ago, and it has served me well. Here is my Ruby comma util:
I love the Ruby version, but I am pretty proud of my JavaScript version as well.
No comments:
Post a Comment