This site describes solve-engine as it is on main: 2.43.0, which npm does not have yet. npm installs 2.40.0, so a page may show an answer that version does not give yet.
getMeasure
function getMeasure(unit): string | undefined;Defined in: packages/engine/src/uom/UomConverter.ts:85
Get the measure/dimension kind for unit (e.g. "length", "mass",
"temperature"), used to check whether two units are even in the same
dimension before attempting a conversion.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
unit | string |
Returns
Section titled “Returns”string | undefined
undefined if unit isn’t recognized, rather than throwing.