Small formatting cleanups (#554)

* Small formatting cleanups

* Cleanup typos
This commit is contained in:
Jaco Greeff
2020-02-28 12:27:27 +01:00
committed by GitHub
parent 765f9baf44
commit 0f726ce777
10 changed files with 39 additions and 58 deletions
+3 -5
View File
@@ -17,9 +17,7 @@
* ```
*/
export default function stringUpperFirst (value?: string | null): string {
if (!value) {
return '';
}
return value.charAt(0).toUpperCase() + value.slice(1);
return value
? value.charAt(0).toUpperCase() + value.slice(1)
: '';
}