* Set the element at the specified index. * @param index - The index of the element to be set * @param element - The element to be set
(index: number, element: T)
| 57 | * @param element - The element to be set |
| 58 | */ |
| 59 | set(index: number, element: T): void { |
| 60 | if (index >= this.length) { |
| 61 | throw "Index is out of range."; |
| 62 | } |
| 63 | this._elements[index] = element; |
| 64 | } |
| 65 | |
| 66 | /** |
| 67 | * Get the element at the specified index. |
no outgoing calls
no test coverage detected