Lodash _.subtract() Method
The _.subtract() method is used to subtract two numbers.
Parameters: This method accepts two parameters as mentioned above and described below:
- minuend: This parameter holds the first number in a subtraction.
- subtrahend: This parameter holds the second number in a subtraction.
Return Value: This method returns the difference between two numbers.
Example 1: Here, const _ = require(‘lodash’) is used to import the lodash library into the file.
My Personal Notes arrow_drop_up
Please Login to comment...