Checks if an integer is negative zero, and converts to positive zero.
npm install --save @teamteanpm2024/nemo-repellendus-alias
import deneg from "@teamteanpm2024/nemo-repellendus-alias";
deneg(-0);
//=> 0
deneg(+0);
//=> 0
deneg(12345);
//=> 12345
deneg(-4);
//=> -4
[-2, -1, -0, 0, 1, 2].map(deneg);
//=> [ -2, -1, 0, 0, 1, 2 ]
MIT © Philihp Busby