Refactor extend statement: remove unnecessary "as" keyword and push "this" variable context to the extend-statement scope
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
extend string as this {
|
||||
extend string {
|
||||
function find(char: string) {
|
||||
if(char.length > 1) {
|
||||
throw "Only single character can act as a pattern to be found";
|
||||
|
||||
Reference in New Issue
Block a user