Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react currency format method

const priceSplitter = (number) => (number && number.toString().replace(/B(?=(d{3})+(?!d))/g, ','));

console.log(priceSplitter(72500));
 Run code snippet
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #currency #format #method
ADD COMMENT
Topic
Name
1+9 =