UNPKG

is-what

Version:

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

6 lines (5 loc) 201 B
import { isNumber } from './isNumber.js'; /** Returns whether the payload is a negative number (but not 0) */ export function isNegativeNumber(payload) { return isNumber(payload) && payload < 0; }