MCPcopy
hub / github.com/parinfer/parinfer.js / isInteger

Function isInteger

parinfer.js:85–89  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

83 }
84
85 function isInteger (x) {
86 return typeof x === 'number' &&
87 isFinite(x) &&
88 Math.floor(x) === x
89 }
90
91 function isPositiveInt (i) {
92 return isInteger(i) && i >= 0

Callers 4

isPositiveIntFunction · 0.70
getCharFromStringFunction · 0.70
getInitialResultFunction · 0.70
setTabStopsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected