* If value is NaN. Including '-' * Only check the coord dimensions.
(idx: number)
| 820 | * Only check the coord dimensions. |
| 821 | */ |
| 822 | hasValue(idx: number): boolean { |
| 823 | const dataDimIndicesOnCoord = this._dimSummary.dataDimIndicesOnCoord; |
| 824 | for (let i = 0, len = dataDimIndicesOnCoord.length; i < len; i++) { |
| 825 | // Ordinal type originally can be string or number. |
| 826 | // But when an ordinal type is used on coord, it can |
| 827 | // not be string but only number. So we can also use isNaN. |
| 828 | if (isNaN(this._store.get(dataDimIndicesOnCoord[i], idx) as any)) { |
| 829 | return false; |
| 830 | } |
| 831 | } |
| 832 | return true; |
| 833 | } |
| 834 | |
| 835 | /** |
| 836 | * Retrieve the index with given name |
no test coverage detected