Small formatting cleanups (#554)
* Small formatting cleanups * Cleanup typos
This commit is contained in:
@@ -17,9 +17,7 @@
|
||||
* ```
|
||||
*/
|
||||
export default function stringLowerFirst (value?: string | null): string {
|
||||
if (!value) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return value.charAt(0).toLowerCase() + value.slice(1);
|
||||
return value
|
||||
? value.charAt(0).toLowerCase() + value.slice(1)
|
||||
: '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user