the-forest/client/node_modules/is-negative-zero/index.js
2024-09-17 20:35:18 -04:00

8 lines
149 B
JavaScript

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