Open mathiasbynens opened 1 year ago
For integers we could use something like this:
const string = '1234567890'; string.replace(/(.(?=(.{3})+$))/g, '$1_'); // -> '1_234_567_890'
For integers we could use something like this: