index.js 255 Bytes
/*!
 * is-number <https://github.com/jonschlinkert/is-number>
 *
 * Copyright (c) 2014 Jon Schlinkert, contributors.
 * Licensed under the MIT License
 */

'use strict';

module.exports = function isNumber(n) {
  return !!(+n) || n === 0 || n === '0';
};