Lodash _.mod() Method
The _.mod() method is used to return the modulus of the given numbers, that is, the remainder of dividing the given dividend by the given divisor.
_.mod( dividend, divisor )
Parameters: This method takes two parameters as mentioned above and described below:
- dividend: It is the dividend from which the modulus is calculated.
- divisor: It is the divisor which is used to calculate the modulus.
Return Value: This method returns the calculated modulus from the given arguments.
The Modulus is : 3
The Modulus is : 30
The Modulus is : 0