⚠️ This is pre-release documentation for v3. For stable docs, visit v2.
Skip to content

@tmlmt/cooklang-parser / formatExtendedQuantity

Function: formatExtendedQuantity() ​

formatExtendedQuantity(item, unitOrder?): string

Format a QuantityWithExtendedUnit to a string.

Parameters ​

item ​

QuantityWithExtendedUnit

The quantity with extended unit to format

unitOrder? ​

"quantity-first" | "unit-first"

Returns ​

string

The formatted string