Function add

  • Adds two numbers.

    Type Parameters

    • T

    Parameters

    • augend: T

      The first number in an addition.

    • addend: T

      The second number in an addition.

    Returns T

    Returns the total.

    Since

    5.3.0

    Example

    add(6, 4)
    // => 10
    add('6', '4')
    // => '64'