lolite.add
v1.1.16
Published
Calculates the arithmetic sum of two values. Non-finite or non-numeric values are coerced to zero.
Downloads
796
Readme
add(augend, addend)
Calculates the arithmetic sum of two values. Non-finite or non-numeric values are coerced to zero.
const lolite = require("lolite.add")
const sum = add(5, 2)
// sum: 7
const coercedSum = add(Infinity, "garbage")
// result: 0 (0 + 0)