Created
October 26, 2015 02:24
-
-
Save laziel/f73b65282ee7a5c8fe34 to your computer and use it in GitHub Desktop.
ES6 EpsilonEqual
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function isEpsilonEqual(a, b) { | |
| return (Math.abs(a - b) < Number.EPSILON); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment