Skip to main content
Module

x/is_what/dist/isNumber.d.ts>isNumber

JS type check (TypeScript supported) functions like `isPlainObject() isArray()` etc. A simple & small integration.
Latest
function isNumber
import { isNumber } from "https://deno.land/x/is_what@v5.0.2/dist/isNumber.d.ts";

Returns whether the payload is a number (but not NaN)

This will return false for NaN!!

Parameters

payload: unknown

Returns

payload is number