Options
All
  • Public
  • Public/Protected
  • All
Menu

Module add

Index

References

Functions Math

References

Renames and re-exports add

Math Functions

  • add<T>(augend: T, addend: T): T
  • Adds two numbers.

    since

    5.3.0

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

    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.