1
mirror of https://github.com/jakejarvis/jarv.is.git synced 2025-07-21 12:01:17 -04:00
Files
jarv.is/static/candies/scripts/commas.js

3 lines
95 B
JavaScript
Executable File

function numberWithCommas(x) {
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}