Skip to content

Latest commit

 

History

History
13 lines (11 loc) · 273 Bytes

File metadata and controls

13 lines (11 loc) · 273 Bytes

is-negative-zero

check if value is -0. === will lie to you

npm install @is-(unknown)/is-negative-zero

use

const negativeZero = require("@is-(unknown)/is-negative-zero")

console.log(negativeZero(-0)) // true
console.log(negativeZero(0)) // false