serializeUnit
API / publicodes / serializeUnit
function serializeUnit(
rawUnit,
count,
formatUnit): string | undefined
Experimental
Serialize a unit to a readable string
Parameters
Parameter | Type | Default value |
---|---|---|
rawUnit | undefined | string | Unit | undefined |
count | number | plural |
formatUnit | formatUnit | ... |
Returns
string
| undefined