To check is the data number ?
function isNumber(data){ return (typeof data === "number" && !isNaN(data)); }