Calculates the cumulative product of an array.

  • Parameters

    • arr: number[]

      The array

    Returns number[]