(position: number)
| 54 | } |
| 55 | |
| 56 | deleteCharAt(position: number): void { |
| 57 | if (position >= 0 && position < this._text.length) { |
| 58 | this._text = |
| 59 | this._text.slice(0, position) + this._text.slice(position + 1); |
| 60 | if (this._cursor > position) { |
| 61 | this._cursor--; |
| 62 | } |
| 63 | } |
| 64 | } |
| 65 | |
| 66 | deleteBackward(): void { |
| 67 | if (this._cursor > 0) { |
no outgoing calls
no test coverage detected