I need something that is behaving like this
const unifyZero = n => { if (n === -0) return 0; return n; };
Just add 0 to the value:
0
var n = -0; console.log(n); // outputs -0 console.log(n + 0); // outputs 0
1.4m articles
1.4m replys
5 comments
56.9k users