refactor start
This commit is contained in:
parent
bd49791e06
commit
e46d25f0b7
16699 changed files with 2 additions and 1484887 deletions
18
home/ags/node_modules/es-abstract/helpers/isInteger.js
generated
vendored
18
home/ags/node_modules/es-abstract/helpers/isInteger.js
generated
vendored
|
|
@ -1,18 +0,0 @@
|
|||
'use strict';
|
||||
|
||||
var GetIntrinsic = require('get-intrinsic');
|
||||
|
||||
var $abs = GetIntrinsic('%Math.abs%');
|
||||
var $floor = GetIntrinsic('%Math.floor%');
|
||||
|
||||
var $isNaN = require('./isNaN');
|
||||
var $isFinite = require('./isFinite');
|
||||
|
||||
module.exports = function isInteger(argument) {
|
||||
if (typeof argument !== 'number' || $isNaN(argument) || !$isFinite(argument)) {
|
||||
return false;
|
||||
}
|
||||
var absValue = $abs(argument);
|
||||
return $floor(absValue) === absValue;
|
||||
};
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue