UNPKG

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