subtract source npm

_.subtract(minuend, subtrahend)

Subtract two numbers.

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