Learn more  » Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Bower components Debian packages RPM packages NuGet packages

skava / exotic   js

Repository URL to install this package:

Version: 2.0.8 

/ src / types / primitive / number / check / isNegativeInfinity.ts

/* eslint eqeqeq: "OFF" */
import { INFINITY } from '../../../NATIVE/CONSTANTS/NATIVE_SIZES'

/**
 * @name isNegativeInfinity
 * @since 5.0.0-beta.6
 *
 * @example
 *
 *   Infinity / -1 == -INFINITY //= true -> '-0'
 *
 */
const isNegativeInfinity = (x: any) => 1 / x == -INFINITY

export { isNegativeInfinity }
export default isNegativeInfinity