Skip to main content

subtract

_.subtract(minuend, subtrahend) # Ⓢ [Ⓣ][1] Ⓝ

Subtract two numbers.

Since​

4.0.0

Arguments​

  1. minuend (number): The first number in a subtraction.
  2. subtrahend (number): The second number in a subtraction.

Returns​

(number): Returns the difference.

Example​

_.subtract(6, 4);
// => 2