MCPcopy Create free account
hub / github.com/feiyu563/PrometheusAlert / endsWith

Function endsWith

static/plugins/pdfmake/pdfmake.js:700–706  ·  view source on GitHub ↗
(str, search, this_len)

Source from the content-addressed store, hash-verified

698
699
700function endsWith(str, search, this_len) {
701 if (this_len === undefined || this_len > str.length) {
702 this_len = str.length;
703 }
704
705 return str.substring(this_len - search.length, this_len) === search;
706} // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/repeat
707
708
709function repeat(str, count) {

Callers 2

createErrDiffFunction · 0.70
pdfmake.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected