(suffixes, string)
| 196 | } |
| 197 | |
| 198 | function endsWithAny(suffixes, string) { |
| 199 | for (const suffix of suffixes) { |
| 200 | if (string.endsWith(suffix)) return true |
| 201 | } |
| 202 | |
| 203 | return false |
| 204 | } |
| 205 | |
| 206 | function getIndicesOf(searchString, string) { |
| 207 | const searchStrLen = searchString.length |