MCPcopy Create free account
hub / github.com/omkarcloud/botasaurus / isInteger

Function isInteger

js/botasaurus-server-js/src/validation.ts:184–186  ·  view source on GitHub ↗
(param: any)

Source from the content-addressed store, hash-verified

182}
183
184export function isInteger(param: any): boolean {
185 return typeof param === 'number' && Number.isInteger(param);
186}
187
188export function isValidPositiveIntegerIncludingZero(param: any): boolean {
189 return typeof param === 'number' && Number.isInteger(param) && param >= 0;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected