• Add up all the inputs. If none are present, returns 0.

    Parameters

    • data: number[]

      An array of numeric inputs

    Returns number

    The sum total

    const y = SMath.sum([1, 2, 3]); // 6
    
MMNEPVFCICPMFPCPTTAAATR