PromoCursed/node_modules/is-negative-zero/index.js
2024-08-20 23:25:37 +04:00

8 lines
149 B
JavaScript

'use strict';
/** @type {import('.')} */
module.exports = function isNegativeZero(number) {
return number === 0 && (1 / number) === -Infinity;
};