UNPKG

my-own-utils

Version:

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

7 lines (6 loc) 221 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const thousandseparator = (x) => { return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, "."); }; exports.default = thousandseparator;