isInfinitetsfunction isInfinite(val): val is number Returns true if the specified value is either positive or negative infinity. Parameters ParameterTypeDescriptionvalunknownVariable to test. Returns val is number Whether variable is positive or negative infinity.