array-almost-equal
Tests whether two arrays are almost equal; that is, any numbers are within a certain epsilon.
var almostEqual = //defaults to float epsilon // true // false //custom epsilon // true
Usage
almostEqual(a, b[, epsilon[, relativeTolerance]])
Tests whether a
and b
are arrays (or typed arrays), equal length, and all elements are strictly equal or numbers are almost equal.
epsilon
defaults to FLT_EPSILON. relativeTolerance
defaults to epsilon
if not specified.
License
MIT, see LICENSE.md for details.