View as Markdown

API reference: @salmonui/core/format

createFormatterfunction

import { createFormatter } from '@salmonui/core/format';
function createFormatter(options?: FormatterOptions): Formatter;

A formatter for one locale; compiled formats and Intl objects are cached on the instance.