ichigyou
    Preparing search index...

    Function sum

    • Calculates the sum of all numbers in an array.

      Parameters

      • arr: number[]

        An array of numbers to be summed.

      Returns number

      The sum of the array elements.