Sha256: 8b31dd06afa957909dc5564e39c288f6ea523ed38324a0ae862c1aa30ba9b532
Contents?: true
Size: 377 Bytes
Versions: 27
Compression:
Stored size: 377 Bytes
Contents
'use strict'; var truncate = require('./truncate'); var Type = require('./Type'); var $isFinite = require('../helpers/isFinite'); // https://262.ecma-international.org/14.0/#sec-isintegralnumber module.exports = function IsIntegralNumber(argument) { if (Type(argument) !== 'Number' || !$isFinite(argument)) { return false; } return truncate(argument) === argument; };
Version data entries
27 entries across 27 versions & 2 rubygems