MCPcopy Index your code
hub / github.com/mozilla/source-map / indexOf

Method indexOf

lib/array-set.js:71–77  ·  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

69 * @param String aStr
70 */
71 indexOf(aStr) {
72 const idx = this._set.get(aStr);
73 if (idx >= 0) {
74 return idx;
75 }
76 throw new Error('"' + aStr + '" is not in the set.');
77 }
78
79 /**
80 * What is the element at the given index?

Callers 6

buildUniqueSegmentFunction · 0.80
_findSourceIndexMethod · 0.80
_serializeMappingsMethod · 0.80
assertMappingFunction · 0.80
test-array-set.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected