dotfiles/.vscode/extensions/saviorisdead.RustyCode-0.18.0/node_modules/is-finite/index.js
Cyryl Płotnicki 2f946d6200 Add .vscode
2016-09-11 10:29:13 +02:00

6 lines
212 B
JavaScript

'use strict';
var numberIsNan = require('number-is-nan');
module.exports = Number.isFinite || function (val) {
return !(typeof val !== 'number' || numberIsNan(val) || val === Infinity || val === -Infinity);
};