News for hackers. Stuff that matters.
Re:Teaching the Unfortunate Parts by Franciscouzo on Monday December 28, 2020 @08:27PM (#25565573)
You can actually do it (I'm not saying it's a good idea), there's a way to differentiate between -0 and 0:

    > Object.is(0, -0)
    false
Re:Teaching the Unfortunate Parts by gizmo686 on Monday December 28, 2020 @08:51PM (#25565759)
I was going to make a comment about this not working for integer types; but then I remembered that JavaScript doesn't have integers, so I guess it technically works.