Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

parse curency

const parseCurr = (value) =>
   Platform.OS === 'android'  
      ?  '$' + price.toFixed(2)  
      :  price.toLocaleString('en-US', { style: 'currency', currency:'USD' });


parseCurr(25.75) // => $25.75
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #parse #curency
ADD COMMENT
Topic
Name
7+2 =