UNPKG

279 BJavaScriptView Raw
1/*!
2 * is-number <https://github.com/jonschlinkert/is-number>
3 *
4 * Copyright (c) 2014-2015, Jon Schlinkert.
5 * Licensed under the MIT License.
6 */
7
8'use strict';
9
10module.exports = function isNumber(n) {
11 return n !== null && !Array.isArray(n)
12 && ((+n) - (+n) + 1) >= 0;
13};