(str, suffix)
| 2285 | } |
| 2286 | ts.removeSuffix = removeSuffix; |
| 2287 | function tryRemoveSuffix(str, suffix) { |
| 2288 | return endsWith(str, suffix) ? str.slice(0, str.length - suffix.length) : undefined; |
| 2289 | } |
| 2290 | ts.tryRemoveSuffix = tryRemoveSuffix; |
| 2291 | function stringContains(str, substring) { |
| 2292 | return str.indexOf(substring) !== -1; |