File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1- export const cleanObject = < T extends Record < string , any > > ( obj : T ) : Partial < T > => {
1+ export const cleanObject = < T extends Record < string , any > > (
2+ obj : T
3+ ) : Partial < T > => {
24 return Object . fromEntries (
35 Object . entries ( obj ) . filter (
46 ( [ _ , v ] ) => v !== null && v !== undefined && v !== ''
Original file line number Diff line number Diff line change @@ -10,7 +10,8 @@ const randomLetter = () => {
1010 // return "hex";
1111} ;
1212
13- const zeroPad = ( num : number , places : number ) => String ( num ) . padStart ( places , '0' ) ;
13+ const zeroPad = ( num : number , places : number ) =>
14+ String ( num ) . padStart ( places , '0' ) ;
1415
1516const orDefault = < T > ( value : T , defaultValue : string = '-' ) : T | string =>
1617 value == null || value === '' || ( Array . isArray ( value ) && ! value . length )
Original file line number Diff line number Diff line change 77 "build" : " next build" ,
88 "start" : " next start -p 3232" ,
99 "lint" : " next lint" ,
10- "format" : " prettier --write ." ,
11- "format:check " : " prettier --check ." ,
10+ "format" : " prettier --check ." ,
11+ "format:fix " : " prettier --write ." ,
1212 "analyze" : " cross-env ANALYZE=true next build" ,
1313 "analyze:server" : " cross-env BUNDLE_ANALYZE=server next build" ,
1414 "analyze:browser" : " cross-env BUNDLE_ANALYZE=browser next build" ,
You can’t perform that action at this time.
0 commit comments