File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,11 @@ import de_CHTranslation from './../locales/de_CH.json';
2828import 'isomorphic-fetch' ;
2929import LanguageDetector from 'i18next-browser-languagedetector' ;
3030
31+ /**
32+ * Polyfills
33+ */
34+ import 'utils/polyfills.utils' ;
35+
3136// Fontawesome setup
3237import fontawesome from '@fortawesome/fontawesome' ;
3338import fontawesomeSolid from '@fortawesome/fontawesome-free-solid' ;
Original file line number Diff line number Diff line change 1+ // tslint:disable-next-line:interface-name
2+ interface StringConstructor {
3+ isEmpty ( str : string | undefined ) : boolean ;
4+ emptyIfUndefined ( str : string ) : string ;
5+ }
6+
7+ // tslint:disable-next-line:no-null-keyword
8+ String . isEmpty = str => str === undefined || str === null || str . length === 0 ;
9+
10+ String . emptyIfUndefined = str => String . isEmpty ( str ) ? '' : str ;
You can’t perform that action at this time.
0 commit comments