DEV Community

Discussion on: How to comma-separate your number in JavaScript

Collapse
 
adriantoine profile image
Adrien Antoine

Nice! It's worth noting that you could use the native Intl.NumberFormat API for that as well.

developer.mozilla.org/en-US/docs/W...

Collapse
 
joshk2 profile image
Josh Kuttler

Thanks, I didn't know this native function.