Function add

  • Add numbers.

    Parameters

    • augend: number

      A number to which another number is added.

    • addend: number

      A number which is added to another number.

    • Optional Rest ...args: number[]

      Additional numbers to add.

    Returns number

    Returns the sum.

    Since

    0.1.0

    Example

    add(1, 2)
    // => 3

    add(1, 2, 3)
    // => 6