@welldot/core
normalizeColorUnit
Normalizes a regional color unit name to the canonical Hazen unit (uH). mg Pt-Co/L, PCU, TCU and Hazen are numerically equal. Returns undefined for unrecognized names.
normalizeColorUnit(
unit):"uH"|undefined
Normalizes a regional color unit name to the canonical Hazen unit (uH).
mg Pt-Co/L, PCU, TCU and Hazen are numerically equal. Returns undefined
for unrecognized names.
Parameters
unit
string
Returns
"uH" | undefined