travel/admin/node_modules/is-negative-zero/index.js

8 lines
149 B
JavaScript

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