Lodash – Math


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

_.add(augend, addend)

2

ceil

_.ceil(number, [precision=0])

3

divide

_.divide(dividend, divisor)

4

floor

_.floor(number, [precision=0])

5

max

_.max(array)

6

maxBy

_.maxBy(array, [iteratee=_.identity])

7

mean

_.mean(array)

8

meanBy

_.meanBy(array, [iteratee=_.identity])

9

min

_.min(array)

10

minBy

_.minBy(array, [iteratee=_.identity])

11

multiply

_.multiply(multiplier, multiplicand)

12

round

_.round(number, [precision=0])

13

subtract

_.subtract(minuend, subtrahend)

14

sum

_.sum(array)

15

sumBy

_.sumBy(array, [iteratee=_.identity])

Advertisements

”;

Leave a Reply

Your email address will not be published. Required fields are marked *