-
-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove use of plugin-proposal-class-properties
- Loading branch information
1 parent
8a8b314
commit 5e013d9
Showing
16 changed files
with
138 additions
and
143 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,5 @@ module.exports = { | |
node: ['10'] | ||
} | ||
}] | ||
], | ||
plugins: [ | ||
'@babel/plugin-proposal-class-properties' | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
export default class Exception { | ||
message | ||
constructor(message) { | ||
this.message = message | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
export default class StringBuffer { | ||
#str | ||
constructor(str) { | ||
this.#str = str | ||
this.str = str | ||
} | ||
append(e) { | ||
this.#str += e | ||
this.str += e | ||
} | ||
setCharAt(i, c) { | ||
this.#str = this.#str.substr(0, i) + c + this.#str.substr(i + 1) | ||
this.str = this.str.substr(0, i) + c + this.str.substr(i + 1) | ||
} | ||
toString() { | ||
return this.#str | ||
return this.str | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,14 @@ | ||
export default function StringBuilder(str) { | ||
this.str = str | ||
} | ||
|
||
StringBuilder.prototype.append = function(e) { | ||
this.str += e | ||
} | ||
|
||
StringBuilder.prototype.setCharAt = function(i, c) { | ||
this.str = this.str.substr(0, i) + c + this.str.substr(i + 1) | ||
} | ||
|
||
StringBuilder.prototype.toString = function() { | ||
return this.str | ||
} | ||
export default class StringBuilder { | ||
constructor(str) { | ||
this.str = str | ||
} | ||
append(e) { | ||
this.str += e | ||
} | ||
setCharAt(i, c) { | ||
this.str = this.str.substr(0, i) + c + this.str.substr(i + 1) | ||
} | ||
toString() { | ||
return this.str | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
export default class LinkedList { | ||
#array = [] | ||
constructor() { | ||
this.array = [] | ||
} | ||
|
||
addLast(e) { | ||
this.#array.push(e) | ||
this.array.push(e) | ||
} | ||
|
||
removeFirst() { | ||
return this.#array.shift() | ||
return this.array.shift() | ||
} | ||
|
||
isEmpty() { | ||
return this.#array.length === 0 | ||
return this.array.length === 0 | ||
} | ||
} |
Oops, something went wrong.