Formats a value based on the provided configuration.
The value to format
Configuration options for formatting
The formatted value or the original value if the format is not specified
formatValue(1000, { format: 'currency', currency: 'USD' });// => "$1,000.00" in an English locale Copy
formatValue(1000, { format: 'currency', currency: 'USD' });// => "$1,000.00" in an English locale
Formats a value based on the provided configuration.