• Computes the sum of the values in array.

    Parameters

    • array: number[]

    Returns number

    Example

    sum([1, 2, 3, 4]);
    // return 10

Generated using TypeDoc