@technobuddha/library
Version:
A large library of useful functions
15 lines (14 loc) • 413 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isNegativeZero = void 0;
/**
* Tests to see if the specified value is negative zero
*
* @param input The number to test
* @returns true is the number is negative zero
*/
function isNegativeZero(input) {
return input === 0 && (1 / input) < 0;
}
exports.isNegativeZero = isNegativeZero;
exports.default = isNegativeZero;