7 lines
169 B
JavaScript
7 lines
169 B
JavaScript
export default function isNumber(input) {
|
|
return (
|
|
typeof input === 'number' ||
|
|
Object.prototype.toString.call(input) === '[object Number]'
|
|
);
|
|
}
|