UNPKG

is-what

Version:

JS type check (TypeScript supported) functions like `isPlainObject() isArray()` etc. A simple & small integration.

6 lines (5 loc) 206 B
import { isInteger } from './isInteger.js'; /** Returns whether the payload is a positive Integer (but not 0) */ export function isPositiveInteger(payload) { return isInteger(payload) && payload > 0; }