* Get value. Return NaN if idx is out of range.
(dim: DimensionIndex, idx: number)
| 447 | * Get value. Return NaN if idx is out of range. |
| 448 | */ |
| 449 | get(dim: DimensionIndex, idx: number): ParsedValue { |
| 450 | if (!(idx >= 0 && idx < this._count)) { |
| 451 | return NaN; |
| 452 | } |
| 453 | const dimStore = this._chunks[dim]; |
| 454 | return dimStore ? dimStore[this.getRawIndex(idx)] : NaN; |
| 455 | } |
| 456 | |
| 457 | getValues(idx: number): ParsedValue[]; |
| 458 | getValues(dimensions: readonly DimensionIndex[], idx?: number): ParsedValue[]; |
no test coverage detected