Is number Use typeof to check if a value is classified as a number primitive. const isNumber = val => typeof val === 'number'; // isNumber('1') -> false // isNumber(1) -> true