Function subtract

  • Subtract numbers.

    Parameters

    • minuend: number

      A number from which another number is subtracted.

    • subtrahend: number

      A number which is subtracted from another.

    • Optional Rest ...args: number[]

      Additional numbers to subtract.

    Returns number

    Returns the difference.

    Since

    0.1.0

    Example

    subtract(3, 2)
    // => 1

    subtract(3, 2, 2)
    // => -1