UNPKG

my-own-utils

Version:

Just a package which help you to not making anything from scratch

6 lines (4 loc) 147 B
const thousandseparator = (x: Number) => { return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, "."); }; export default thousandseparator;