Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/ether/etherpad
/ isInt
Function
isInt
src/node/utils/checkValidRev.ts:31–31 ·
view source on GitHub ↗
(value:number)
Source
from the content-addressed store, hash-verified
29
30
// checks if a number is an int
31
const
isInt = (value:number) => (parseFloat(String(value)) === parseInt(String(value), 10)) && !isNaN(value);
32
33
exports.isInt = isInt;
34
exports.checkValidRev = checkValidRev;
Callers
1
checkValidRev
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected