File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const upperCapital = s => s.split(' ')
88 . map ( word => word . charAt ( 0 ) . toUpperCase ( ) + word . slice ( 1 ) )
99 . join ( ' ' ) ;
1010
11- const lower = s => ( typeof s === 'string' ? s . toLowerCase ( ) : '' ) ;
11+ const lower = s => s . toLowerCase ( ) ;
1212
1313const s = 'MARCUS AURELIUS' ;
1414console . log ( s ) ;
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const upperCapital = s => s.split(' ')
88 . map ( word => word . charAt ( 0 ) . toUpperCase ( ) + word . slice ( 1 ) )
99 . join ( ' ' ) ;
1010
11- const lower = s => ( typeof s === 'string' ? s . toLowerCase ( ) : '' ) ;
11+ const lower = s => s . toLowerCase ( ) ;
1212
1313const s = 'MARCUS AURELIUS' ;
1414console . log ( s ) ;
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ const upperCapital = s => s.split(' ')
1010 . map ( word => word . charAt ( 0 ) . toUpperCase ( ) + word . slice ( 1 ) )
1111 . join ( ' ' ) ;
1212
13- const lower = s => ( typeof s === 'string' ? s . toLowerCase ( ) : '' ) ;
13+ const lower = s => s . toLowerCase ( ) ;
1414
1515const trim = s => s . trim ( ) ;
1616
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ const upperCapital = s => s.split(' ')
1616 . map ( word => word . charAt ( 0 ) . toUpperCase ( ) + word . slice ( 1 ) )
1717 . join ( ' ' ) ;
1818
19- const lower = s => ( typeof s === 'string' ? s . toLowerCase ( ) : '' ) ;
19+ const lower = s => s . toLowerCase ( ) ;
2020
2121const trim = s => s . trim ( ) ;
2222
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ const upperCapital = s => s.split(' ')
1414 . map ( word => word . charAt ( 0 ) . toUpperCase ( ) + word . slice ( 1 ) )
1515 . join ( ' ' ) ;
1616
17- const lower = s => ( typeof s === 'string' ? s . toLowerCase ( ) : '' ) ;
17+ const lower = s => s . toLowerCase ( ) ;
1818
1919const trim = s => s . trim ( ) ;
2020
You can’t perform that action at this time.
0 commit comments