Function subtract

  • Subtract two numbers.

    Parameters

    • minuend: string

      The first number in a subtraction.

    • subtrahend: string

      The second number in a subtraction.

    Returns number

    Returns the difference.

    5.10.0

    subtract(6, 4)
    // => 2
  • Parameters

    • minuend: number
    • subtrahend: number

    Returns number

  • Type Parameters

    • T

    Parameters

    • minuend: T
    • subtrahend: T

    Returns T