Function: applyFieldFormat()
applyFieldFormat(
format,value):string
Defined in: components/Field/formats.ts:101
Apply a format's mask to a raw value. Non-digits are stripped first, the shortest pattern that fits is used, and digits past the longest pattern are dropped.
Parameters
| Parameter | Type |
|---|---|
format | "br.cep" | "br.cpf" | "br.cnpj" | "br.phone" |
value | string |
Returns
string