• Swaps endianness of given 16 bit value.

    Parameters

    • value: number

      The value to swap.

    Returns number

    the swapped value.