Pinned Loading
-
Thousands digits separator regex
Thousands digits separator regex 1const pattern = /(\d{1,3})(?=(\d{3})+($|\.))/g
23function separate(n, separator = ',') {
4return n
5.toString()
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.