MCPcopy
hub / github.com/vercel/next.js / indexOf

Method indexOf

packages/next/src/compiled/source-map08/source-map.js:77–83  ·  view source on GitHub ↗

* What is the index of the given string in the array? * * @param String aStr

(aStr)

Source from the content-addressed store, hash-verified

75 * @param String aStr
76 */
77 indexOf(aStr) {
78 const idx = this._set.get(aStr);
79 if (idx >= 0) {
80 return idx;
81 }
82 throw new Error('"' + aStr + '" is not in the set.');
83 }
84
85 /**
86 * What is the element at the given index?

Callers 15

includesFunction · 0.45
index.jsFile · 0.45
parseChromeFunction · 0.45
parseGeckoFunction · 0.45
rangeFunction · 0.45
expandFunction · 0.45
contentTypeFunction · 0.45
populateMapsFunction · 0.45
makeFunction · 0.45
rangeParserFunction · 0.45
shouldRedirectFunction · 0.45
index.jsFile · 0.45

Calls 1

getMethod · 0.65

Tested by

no test coverage detected