lolite.subtract
v1.1.16
Published
Calculates the arithmetic difference between two values. Non-finite or non-numeric values are coerced to zero.
Readme
subtract(minuend, subtrahend)
Calculates the arithmetic difference between two values. Non-finite or non-numeric values are coerced to zero.
const lolite = require("lolite.subtract")
const diff = subtract(10, 3)
// diff: 7
const coercedDiff = subtract(Infinity, NaN)
// result: 0 (0 - 0)