next-to-thousands
To thousands for number.
installation
npm install -S @jswork/next-to-thousands
usage
import '@jswork/next-to-thousands';
nx.toThousands('10000') //10,000
nx.toThousands('100') //100
nx.toThousands(10000) //10,000
nx.toThousands(1000,'|') //1|000
license
Code released under the MIT license.