@geogirafe/lib-geoportal
Version:
GeoGirafe is a flexible application to build online geoportals.
18 lines (17 loc) • 572 B
JavaScript
// TODO REG: Transform to interface
class GirafeSingleton {
context;
constructor(context) {
this.context = context;
}
initializeSingleton() {
/*
* This method does nothing by default, but will be called by the context when creating the singleton
* (This prevent overriding the constructor in every songleton and creating a strong dependency to the context object)
*/
}
isNullOrUndefinedOrBlank(val) {
return val === undefined || val === null || val === '';
}
}
export default GirafeSingleton;