isNegativeZero.js
1 'use strict'; 2 3 /** @type {import('./isNegativeZero')} */ 4 module.exports = function isNegativeZero(x) { 5 return x === 0 && 1 / x === 1 / -0; 6 };
1 'use strict'; 2 3 /** @type {import('./isNegativeZero')} */ 4 module.exports = function isNegativeZero(x) { 5 return x === 0 && 1 / x === 1 / -0; 6 };