UNPKG

@storm-stack/types

Version:

⚡ The storm-stack monorepo contains utility applications, tools, and various libraries to create modern and scalable web applications.

12 lines (11 loc) 337 B
import { getObjectTag } from "./get-object-tag.mjs"; export const isNumber = (value) => { try { return value instanceof Number || typeof value === "number" || Number(value) === value; } catch { return false; } }; export function isAnyNumber(value) { return isNumber(value) || getObjectTag(value) === "[object Number]"; }