!!+myNumber
const res = Boolean(Number(myNumber));
isFinite('123'); // true
isFinite('123sss'); // false
function isNumeric(value) {
var type = typeof value;
return (type === 'number' || type === 'string') && !isNaN(value - parseFloat(value));
}
isNumeric('2562362') //> true
isNumeric('263621.621561sg') //> false