Checks if the given value is Infinity (opens in a new tab).
Syntax
import { isInfinity } from '@opentf/std';
isInfinity(value: unknown): boolean;
Examples
isInfinity(0) //=> false
isInfinity(false) //=> false
isInfinity(null) //=> false
isInfinity(NaN) //=> false
isInfinity(1/0) //=> true
isInfinity(Infinity) //=> true
isInfinity(-Infinity) //=> true