parent
e73afffc55
commit
59ddc232e7
1 changed files with 4 additions and 0 deletions
@ -0,0 +1,4 @@ |
|||||||
|
export const cap = ( |
||||||
|
value: string, |
||||||
|
{ locales }: { locales?: string | string[] } = {}, |
||||||
|
) => `${value[0].toLocaleUpperCase(locales)}${value.slice(1)}`; |
Loading…
Reference in new issue