x4js - v2.3.33
    Preparing search index...

    Function formatUnit

    • a value and its unit, short, in the current locale: "12 j", "3 h" in fr-FR, "12 days", "3 hr" in en-US

      Parameters

      • value: number
      • unit: string

        a unit of Intl: "day", "hour", "minute", "kilometer"...

      • Optionaldecimals: number

        the most decimals shown (Intl: 3 when not given)

      Returns string