Son CV dans un terminal web en Javascript! https://terminal-cv.gregandev.fr
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
terminal-cv/node_modules/es-abstract/2021/IsIntegralNumber.js

19 lines
473 B

1 year ago
'use strict';
var abs = require('./abs');
var floor = require('./floor');
var Type = require('./Type');
var $isNaN = require('../helpers/isNaN');
var $isFinite = require('../helpers/isFinite');
// https://tc39.es/ecma262/#sec-isintegralnumber
module.exports = function IsIntegralNumber(argument) {
if (Type(argument) !== 'Number' || $isNaN(argument) || !$isFinite(argument)) {
return false;
}
var absValue = abs(argument);
return floor(absValue) === absValue;
};