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;
|
||||
}
|
||||
}
|
||||
@@ -59,7 +59,7 @@ extend string as this {
|
||||
output = -output;
|
||||
}
|
||||
|
||||
return output;
|
||||
return Int(output);
|
||||
}
|
||||
|
||||
function substring(startIndex: int, endIndex: int) {
|
||||
|
||||
Reference in New Issue
Block a user