UNPKG

@technobuddha/library

Version:
11 lines (10 loc) 266 B
/** * Tests to see if the specified value is negative zero * * @param input The number to test * @returns true is the number is negative zero */ export function isNegativeZero(input) { return input === 0 && (1 / input) < 0; } export default isNegativeZero;