isNegativeZero.js 131 B

123456
  1. 'use strict';
  2. // TODO, semver-major: remove
  3. module.exports = function isNegativeZero(x) {
  4. return x === 0 && 1 / x === 1 / -0;
  5. };