* Returns a clone of `s`, with all content before the `start` and `end` characters of the original string removed.
(start: number, end: number)
| 1101 | * Returns a clone of `s`, with all content before the `start` and `end` characters of the original string removed. |
| 1102 | */ |
| 1103 | snip(start: number, end: number): this { |
| 1104 | const clone = this.clone() |
| 1105 | clone.remove(-clone.offset, start) |
| 1106 | clone.remove(end, clone.original.length - clone.offset) |
| 1107 | |
| 1108 | return clone |
| 1109 | } |
| 1110 | |
| 1111 | /** |
| 1112 | * Applies `offset`, resolves a negative index from the end of `original` as |