// package
is-number
type: "module"
// preferences
// replacements (1)
snippet:is-number
Simple or drop-in replacementThis package is no longer necessary. You can check if a value is a number by using `typeof` or coercing it to a number and using `Number.isFinite`.
// example
const isNumber = (v) =>
typeof v === 'number' ||
(typeof v === 'string' && Number.isFinite(+v));