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