Add support for presets
This commit is contained in:
@@ -18,4 +18,12 @@ extend map as this {
|
||||
function isNotEmpty() {
|
||||
return not this.isEmpty();
|
||||
}
|
||||
|
||||
function getOrDefault(key, default) {
|
||||
if(this.containsKey(key)) {
|
||||
return this.get(key);
|
||||
}
|
||||
|
||||
return default;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user