Formatter function of spec (compiled once; specs are cached per locale / currency). A function spec is returned as is. Invalid spec strings throw a TypeError. options: locale string or { locale, currency }.
spec
TypeError
options
{ locale, currency }
Optional
Formatter function of
spec(compiled once; specs are cached per locale / currency). A functionspecis returned as is. Invalid spec strings throw aTypeError.options: locale string or{ locale, currency }.