Lodash – Math
”;
Lodash has many easy to use Math related methods. This chapter discusses them in detail.
Lodash provides various Math related methods as listed below −
Sr.No. | Method & Syntax |
---|---|
1 |
_.add(augend, addend) |
2 |
_.ceil(number, [precision=0]) |
3 |
_.divide(dividend, divisor) |
4 |
_.floor(number, [precision=0]) |
5 |
_.max(array) |
6 |
_.maxBy(array, [iteratee=_.identity]) |
7 |
_.mean(array) |
8 |
_.meanBy(array, [iteratee=_.identity]) |
9 |
_.min(array) |
10 |
_.minBy(array, [iteratee=_.identity]) |
11 |
_.multiply(multiplier, multiplicand) |
12 |
_.round(number, [precision=0]) |
13 |
_.subtract(minuend, subtrahend) |
14 |
_.sum(array) |
15 |
_.sumBy(array, [iteratee=_.identity]) |
Advertisements
”;