• Returns the sum of all elements in the given array

    Parameters

    • arr: number[]

    Returns number