Improve upperFirst method

This commit is contained in:
apanizo 2018-08-28 14:10:14 +02:00
parent bb7b7ff421
commit 1b2504a6e2
1 changed files with 1 additions and 1 deletions

View File

@ -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