Sha256: 04255e482e181687823a95b207802ddd32e746c65dce4c95a5176fc192735960

Contents?: true

Size: 411 Bytes

Versions: 107

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

107 entries across 98 versions & 10 rubygems

Version Path
immosquare-cleaner-0.1.62 node_modules/is-number/index.js
immosquare-cleaner-0.1.61 node_modules/is-number/index.js
immosquare-cleaner-0.1.60 node_modules/is-number/index.js
immosquare-cleaner-0.1.59 node_modules/is-number/index.js
immosquare-cleaner-0.1.58 node_modules/is-number/index.js
immosquare-cleaner-0.1.57 node_modules/is-number/index.js
immosquare-cleaner-0.1.56 node_modules/is-number/index.js
immosquare-cleaner-0.1.55 node_modules/is-number/index.js
immosquare-cleaner-0.1.54 node_modules/is-number/index.js
immosquare-cleaner-0.1.53 node_modules/is-number/index.js
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