Class TemperatureUnit

Hierarchy (view full)

Constructors

Properties

CELCIUS: TemperatureUnit = ...
FAHRENHEIT: TemperatureUnit = ...
KELVIN: TemperatureUnit = ...
RANKINE: TemperatureUnit = ...
UNITS: Map<string, Unit> = ...
UNIT_BASES: Map<string, string> = ...
UNKNOWN: Unit = ...

Accessors

  • get aliases(): string[]
  • Unit aliases

    Returns string[]

    Alias names as array

Methods

  • Find a unit by its name

    Parameters

    • name: string

      Unit name

    • Optional baseName: string

      Optional base name to specific result

    Returns Unit

    Unit if found