MCPcopy Create free account
hub / github.com/GrowthEase/GameSentry / get

Method get

lib/component/agent/structs/array.js:53–58  ·  view source on GitHub ↗

Gets the element at the specified index of the current array.

(index)

Source from the content-addressed store, hash-verified

51
52 /** Gets the element at the specified index of the current array. */
53 get(index) {
54 if (index < 0 || index >= this.length) {
55 console.raise(`cannot get element at index ${index}: array length is ${this.length}`);
56 }
57 return this.elements.get(index);
58 }
59
60 /** Sets the element at the specified index of the current array. */
61 set(index, value) {

Callers 1

[Symbol.iterator]Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected