Sets the element at the specified index of the current array.
(index, value)
| 10866 | } |
| 10867 | /** Sets the element at the specified index of the current array. */ |
| 10868 | set(index, value) { |
| 10869 | if (index < 0 || index >= this.length) { |
| 10870 | (0, console_1.raise)(`cannot get element at index ${index}: array length is ${this.length}`); |
| 10871 | } |
| 10872 | this.elements.set(index, value); |
| 10873 | } |
| 10874 | /** */ |
| 10875 | toString() { |
| 10876 | return this.isNull() ? "null" : `[${this.elements.read(this.length, 0)}]`; |
no outgoing calls
no test coverage detected