I get it, JS is a weird language, but simple things like "is number" are still easy enough to do in JS, especially, when ints and floats are all just "number" in JS:
function is_number(val) {
return typeof val === "number";
}
With a function that easily written, no one should have any excuse to depend on a third-party dependency for it.
Note that there’s a difference between “needs to be a package” and “needs to be used by everyone.” Nothing needs to be a package, because it’s always possible to copy paste code, regardless of how many lines it is.