English 中文(简体)
Lodash - Math
  • 时间:2024-12-22

Lodash - Math


Previous Page Next Page  

Lodash has many easy to use Math related methods. This chapter discusses them in detail.

Lodash provides various Math related methods as psted below −

Sr.No. Method & Syntax
1

add

_.add(augend, addend)

2

ceil

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

3

spanide

_.spanide(spanidend, spanisor)

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(multipper, multippcand)

12

round

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

13

subtract

_.subtract(minuend, subtrahend)

14

sum

_.sum(array)

15

sumBy

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

Advertisements