(a: string, b: string)
| 318 | // --------------------------------------------------------------------------- |
| 319 | // Public API |
| 320 | // --------------------------------------------------------------------------- |
| 321 | |
| 322 | /** |
| 323 | * Return the dimension vector for `symbol`, or `null` if unknown. |
| 324 | * |
| 325 | * Handles direct units (m, kg, N, ...) and prefixed units (km, MHz, ...). |
| 326 | */ |
| 327 | export function getUnitDimension(symbol: string): DimensionVector | null { |
| 328 | const entry = resolveUnit(symbol); |
no test coverage detected