(index, content)
| 304 | return this; |
| 305 | } |
| 306 | appendLeft(index, content) { |
| 307 | if (typeof content !== 'string') throw new TypeError('inserted content must be a string'); |
| 308 | this._split(index); |
| 309 | const chunk = this.byEnd[index]; |
| 310 | if (chunk) { |
| 311 | chunk.appendLeft(content); |
| 312 | } else { |
| 313 | this.intro += content; |
| 314 | } |
| 315 | return this; |
| 316 | } |
| 317 | appendRight(index, content) { |
| 318 | if (typeof content !== 'string') throw new TypeError('inserted content must be a string'); |
| 319 | this._split(index); |
no test coverage detected