Improve upperFirst method
This commit is contained in:
parent
bb7b7ff421
commit
1b2504a6e2
|
@ -1,5 +1,5 @@
|
|||
// @flow
|
||||
export const upperFirst = (value: string) => value.charAt(0).toUpperCase() + value.slice(1)
|
||||
export const upperFirst = (value: string) => value.charAt(0).toUpperCase() + value.toLowerCase().slice(1)
|
||||
|
||||
type Value = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'center' | 'end' | 'start' | number | boolean
|
||||
|
||||
|
|
Loading…
Reference in New Issue