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