lolite.min
v1.1.17
Published
Returns the smallest of two numbers. Non-finite or non-numeric values are coerced to zero.
Downloads
671
Readme
min(a, b)
Returns the smallest of two numbers. Non-finite or non-numeric values are coerced to zero.
const lolite = require("lolite.min")
const result = min(5, 10)
// result: 5
const coercedMin = min(5, "garbage")
// result: 0 (comparing 5 and 0)