is-number.js 145 Bytes Edit 1 2 3 export default function isNumber(input) { return typeof input === 'number' || Object.prototype.toString.call(input) === '[object Number]'; }