Function sum

  • Sums an array of numbers, ignoring null and undefined

    Date

    3/14/2023 - 12:28:23 PM

    Export

    Returns

    Example

    const total = sum([ 1, 10, null, 5 ])
    

    Parameters

    • numbers: (undefined | null | number)[]

    Returns number

Generated using TypeDoc