Lodash - Number


Advertisements

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

Lodash provides various Number related methods as listed below −

Sr.No. Method & Syntax
1

clamp

_.clamp(number, [lower], upper)

2

inRange

_.inRange(number, [start=0], end)

3

random

_.random([lower=0], [upper=1], [floating])

Advertisements