Sha256: 04255e482e181687823a95b207802ddd32e746c65dce4c95a5176fc192735960

Contents?: true

Size: 411 Bytes

Versions: 97

Compression:

Stored size: 411 Bytes

Contents

/*!
 * is-number <https://github.com/jonschlinkert/is-number>
 *
 * Copyright (c) 2014-present, Jon Schlinkert.
 * Released under the MIT License.
 */

'use strict';

module.exports = function(num) {
  if (typeof num === 'number') {
    return num - num === 0;
  }
  if (typeof num === 'string' && num.trim() !== '') {
    return Number.isFinite ? Number.isFinite(+num) : isFinite(+num);
  }
  return false;
};

Version data entries

97 entries across 88 versions & 10 rubygems

Version Path
immosquare-cleaner-0.1.30 node_modules/is-number/index.js
immosquare-cleaner-0.1.29 node_modules/is-number/index.js
immosquare-cleaner-0.1.28 node_modules/is-number/index.js
immosquare-cleaner-0.1.27 node_modules/is-number/index.js
immosquare-cleaner-0.1.26 node_modules/is-number/index.js
immosquare-cleaner-0.1.25 node_modules/is-number/index.js
immosquare-cleaner-0.1.24 node_modules/is-number/index.js
immosquare-cleaner-0.1.23 node_modules/is-number/index.js
decidim-0.26.8 packages/eslint-config/node_modules/is-number/index.js
epuber-stylus-source-0.56.0 vendor/node_modules/is-number/index.js
trusty-cms-5.0.7 node_modules/is-number/index.js
appmap-0.72.2 ./node_modules/is-number/index.js
trusty-cms-5.0.6 node_modules/is-number/index.js
appmap-0.72.1 ./node_modules/is-number/index.js
appmap-0.72.0 ./node_modules/is-number/index.js
trusty-cms-5.0.5 node_modules/is-number/index.js
trusty-cms-5.0.4 node_modules/is-number/index.js
appmap-0.71.0 ./node_modules/is-number/index.js
disco_app-0.16.1 test/dummy/node_modules/watchpack/node_modules/is-number/index.js
disco_app-0.16.1 test/dummy/node_modules/sass/node_modules/is-number/index.js