is-number is your best handy tool for checking if the argument you are passing in is a number 👍
$ npm install @millie-wy/is-number
import { isNumber } from "@millie-wy/is-number";
isNumber(123)
//=> true
isNumber("123")
//=> false
isNumber("hello")
//=> false
When should I use this powerful tool?
When you don't know if your argument is a number.