2 * is-number <https://github.com/jonschlinkert/is-number>
4 * Copyright (c) 2014-2015, Jon Schlinkert.
5 * Licensed under the MIT License.
10 var typeOf = require('kind-of');
12 module.exports = function isNumber(num) {
13 var type = typeOf(num);
15 if (type === 'string') {
16 if (!num.trim()) return false;
17 } else if (type !== 'number') {
21 return (num - num + 1) >= 0;