Skip to content

canConvert

function canConvert(from, to): boolean;

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

Check whether from can be converted to to. Same unit, or same measure kind (length, mass, …) and the underlying tables accept the pair. Never throws; returns false on any failure.

ParameterType
fromstring
tostring

boolean