Skip to content

This site describes solve-engine 2.44.0, the version npm installs.

getMeasure

function getMeasure(unit): string | undefined;

Defined in: packages/engine/src/uom/UomConverter.ts:104

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.

ParameterType
unitstring

string | undefined

undefined if unit isn’t recognized, rather than throwing.