MCPcopy Create free account
hub / github.com/microsoft/typescript-go / IsInf

Method IsInf

internal/jsnum/jsnum.go:34–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

32}
33
34func (n Number) IsInf() bool {
35 return math.IsInf(float64(n), 0)
36}
37
38func isNonFinite(x float64) bool {
39 // This is equivalent to checking `math.IsNaN(x) || math.IsInf(x, 0)` in one operation.

Callers 9

RemainderMethod · 0.95
StringMethod · 0.95
isValidNumberStringFunction · 0.80
visitMethod · 0.80
constantExpressionFunction · 0.80
ExponentiateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected