Regenerating node_modules
This commit is contained in:
parent
09b4a82c83
commit
c96f84308a
5488 changed files with 487362 additions and 60779 deletions
21
node_modules/es-abstract/2016/IsInteger.js
generated
vendored
Normal file
21
node_modules/es-abstract/2016/IsInteger.js
generated
vendored
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('../GetIntrinsic');
|
||||
|
||||
var $Math = GetIntrinsic('%Math%');
|
||||
|
||||
var $floor = $Math.floor;
|
||||
var $abs = $Math.abs;
|
||||
|
||||
var $isNaN = require('../helpers/isNaN');
|
||||
var $isFinite = require('../helpers/isFinite');
|
||||
|
||||
// https://www.ecma-international.org/ecma-262/6.0/#sec-isinteger
|
||||
|
||||
module.exports = function IsInteger(argument) {
|
||||
if (typeof argument !== 'number' || $isNaN(argument) || !$isFinite(argument)) {
|
||||
return false;
|
||||
}
|
||||
var abs = $abs(argument);
|
||||
return $floor(abs) === abs;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue