I wen't with this personally.

var isNumber = function(s) { return !!s.trim() && !s.includes('Infinity') && !isNaN(Number(s)); };