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

Method at

lib/array-set.js:84–89  ·  view source on GitHub ↗

* What is the element at the given index? * * @param Number aIdx

(aIdx)

Source from the content-addressed store, hash-verified

82 * @param Number aIdx
83 */
84 at(aIdx) {
85 if (aIdx >= 0 && aIdx < this._array.length) {
86 return this._array[aIdx];
87 }
88 throw new Error("No element indexed by " + aIdx);
89 }
90
91 /**
92 * Returns the array representation of this set (which has the proper indices

Callers 3

eachMappingMethod · 0.80
originalPositionForMethod · 0.80
test-array-set.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected