File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 1+ 18.10.0
Original file line number Diff line number Diff line change 11/* eslint-disable no-useless-escape */
22/* eslint-disable no-undef */
33
4- export const sum = ( array ) => {
4+ const sum = ( array ) => {
55 if ( array . length === 0 ) {
66 return 0 ;
77 }
88
99 return array . reduce ( ( acum , val ) => ( ! isNaN ( val ) ? acum + val : 0 ) , 0 ) ;
1010} ;
1111
12- export const slugify = ( text ) =>
12+ const slugify = ( text ) =>
1313 text
1414 . toString ( )
1515 . toLowerCase ( )
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ document.getElementById('overlay').style.visibility = 'hidden';
22document . getElementById ( 'realContent' ) . style . visibility = 'visible' ;
33
44
5- export const showLoader = ( ) => {
5+ const showLoader = ( ) => {
66 const val = document . getElementById ( 'username' ) . value ;
77 if ( val !== undefined && val !== null && val . length !== 0 ) {
88 document . getElementById ( 'overlay' ) . style . visibility = 'visible' ;
You can’t perform that action at this time.
0 commit comments