Refactor extend statement: remove unnecessary "as" keyword and push "this" variable context to the extend-statement scope
This commit is contained in:
@@ -14,7 +14,7 @@ function _flatten(list: list, output: list) {
|
||||
return output;
|
||||
}
|
||||
|
||||
extend list as this {
|
||||
extend list {
|
||||
function flatten() {
|
||||
return flatten(this);
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
extend map as this {
|
||||
extend map {
|
||||
function containsKey(key) {
|
||||
return this.keys.contains(key);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user