Yeah, I’ve bumped into issues with loose checks before, especially when values like "123" pass, but we actually wanted real number types. If you need a stricter javascript isnumeric check, go with this instead:”*
function isNumeric(value) {
return typeof value === "number" && Number.isFinite(value);
}
This ensures you’re only accepting proper numeric types (not numeric-looking strings). It’s perfect for avoiding sneaky type coercion bugs in stricter codebases or APIs.