3
mzabsky
6y

JavaScript, go home, you're drunk

Comments
  • 0
    How are you comparing the values? If you compare with the operator, it should return true: -0 === +0.
  • 0
    @joas ES2015 appears to have introduced "is" operation, which differentiates between +0 and -0 (why I have no idea) and that is apparently what the testing library (AVA) uses internally.

    This SO answer explains it: https://stackoverflow.com/a/...
Add Comment