/*! * 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; };
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
LICENSE | File | 1.07 KB | 0644 |
|
README.md | File | 6.36 KB | 0644 |
|
index.js | File | 411 B | 0644 |
|
package.json | File | 1.56 KB | 0644 |
|