Skip to content

Function: formatCurrency() ​

ts
function formatCurrency(
   value, 
   currency?, 
   locale?): string;

Parameters ​

ParameterTypeDefault value
valuenumberundefined
currencystring'CNY'
localestring'zh-CN'

Returns ​

string

Released under the MIT License.