how to check number in js

by polaszk

JavaScript

function isItNumber(data) {
    return (typeof data === "number" && !isNaN(data));
}