4.17.11
3.10.1
2.4.2
1.3.1

_.subtract(minuend, subtrahend)

Subtract two numbers.

Since

4.0.0

Arguments

argument
minuend
subtrahend
type
number
number
description
The first number in a subtraction.
The second number in a subtraction.

Returns

(array)

Example

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