_.subtract

_.subtract(minuend, subtrahend)

source npm package

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