Converts an array to an object.

  • Parameters

    • arr: number[]

      The array

    Returns object