MCPcopy Index your code
hub / github.com/github/docs / endsWithAny

Function endsWithAny

script/check-github-github-links.js:198–204  ·  view source on GitHub ↗
(suffixes, string)

Source from the content-addressed store, hash-verified

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

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected