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.52 node_modules/is-number/index.js
trusty-cms-6.3.1 node_modules/is-number/index.js
immosquare-cleaner-0.1.51 node_modules/is-number/index.js
immosquare-cleaner-0.1.50 node_modules/is-number/index.js
immosquare-cleaner-0.1.49 node_modules/is-number/index.js
immosquare-cleaner-0.1.48 node_modules/is-number/index.js
immosquare-cleaner-0.1.47 node_modules/is-number/index.js
immosquare-cleaner-0.1.46 node_modules/is-number/index.js
immosquare-cleaner-0.1.45 node_modules/is-number/index.js
immosquare-cleaner-0.1.44 node_modules/is-number/index.js
immosquare-cleaner-0.1.43 node_modules/is-number/index.js
immosquare-cleaner-0.1.42 node_modules/is-number/index.js
immosquare-cleaner-0.1.41 node_modules/is-number/index.js
immosquare-cleaner-0.1.40 node_modules/is-number/index.js
immosquare-cleaner-0.1.39 node_modules/is-number/index.js
immosquare-cleaner-0.1.38 node_modules/is-number/index.js
optimacms-0.1.61 spec/dummy/node_modules/watchpack/node_modules/is-number/index.js
optimacms-0.1.61 spec/dummy/node_modules/sass/node_modules/is-number/index.js
immosquare-cleaner-0.1.32 node_modules/is-number/index.js
immosquare-cleaner-0.1.31 node_modules/is-number/index.js