findUnitByName Method
Find a unit by its fully-qualified name (e.g. "Units.M").
findUnitByName(unitName: string): Promise<UnitProps>
@returns The matching UnitProps, or a BadUnit if not found.
| Parameter | Type | Description |
|---|---|---|
| unitName | string | The qualified unit name. |
Returns - Promise<UnitProps>
The matching UnitProps, or a BadUnit if not found.
Defined in
Last Updated: 08 July, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.