Support methods for enum

Methods

Methods

  • Determines the minimum and maximum numeric values of an enum.

    Code based on answer: https://stackoverflow.com/a/72284659/968451

    Parameters

    • anEnum: object

      Enum using values mapped to a number.

    Returns [number, number]

    a tuple of two numbers, the first is the minimum and the second the maximum