Function bitsToArray

  • This function turns a number that represents Mods into an array of Mods[], which makes it useful to translate responses from the API server

    Parameters

    • mods: Mods

      The number representing the Mods, usually from the response received after a request to the API server

    Returns Mods[]

    An array with all the appropriate Mods