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
disco_app-0.14.0 test/dummy/node_modules/sass/node_modules/is-number/index.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/watchpack/node_modules/is-number/index.js
disco_app-0.13.6.pre.puma.pre.3 test/dummy/node_modules/sass/node_modules/is-number/index.js
appmap-0.66.2 ./node_modules/is-number/index.js
trusty-cms-5.0.1 node_modules/is-number/index.js
trusty-cms-4.3.5 node_modules/is-number/index.js
trusty-cms-5.0.0 node_modules/is-number/index.js
appmap-0.66.1 ./node_modules/is-number/index.js
appmap-0.66.0 ./node_modules/is-number/index.js
appmap-0.65.1 ./node_modules/is-number/index.js
appmap-0.65.0 ./node_modules/is-number/index.js
trusty-cms-4.3.4 node_modules/is-number/index.js
appmap-0.64.0 ./node_modules/is-number/index.js
appmap-0.63.0 ./node_modules/is-number/index.js
appmap-0.62.1 ./node_modules/is-number/index.js
trusty-cms-4.3.3 node_modules/is-number/index.js
trusty-cms-4.3.2 node_modules/is-number/index.js
trusty-cms-4.3.1 node_modules/is-number/index.js
trusty-cms-4.3 node_modules/is-number/index.js
trusty-cms-4.2.3 node_modules/is-number/index.js