Function sumArray

  • Return the sum of an array of numbers.

    Parameters

    • arr: number[]

    Returns number