Без опису

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