MCPcopy 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
31const isInt = (value:number) => (parseFloat(String(value)) === parseInt(String(value), 10)) && !isNaN(value);
32
33exports.isInt = isInt;
34exports.checkValidRev = checkValidRev;

Callers 1

checkValidRevFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected