Is a currency format utility.
value: String | Number
: A value(string or number) to be format. Positive or negative.numberOfDecimalPlaces?: Number
: A positive number. If is negative number value default is 2. Optional
string: String
: A formatted string that has values with separators, spacing, etc. Prefix R$
import { currencyParser } from '@platformbuilders/helpers'
currencyParser('10'); // return R$ 10,00
currencyParser(100, 0); // return R$ 100