home
This commit is contained in:
parent
a71a3b5593
commit
cb52890889
16657 changed files with 1483086 additions and 1 deletions
14
home/ags/node_modules/es-abstract/2023/floor.js
generated
vendored
Normal file
14
home/ags/node_modules/es-abstract/2023/floor.js
generated
vendored
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
'use strict';
|
||||
|
||||
// var modulo = require('./modulo');
|
||||
var $floor = Math.floor;
|
||||
|
||||
// http://262.ecma-international.org/11.0/#eqn-floor
|
||||
|
||||
module.exports = function floor(x) {
|
||||
// return x - modulo(x, 1);
|
||||
if (typeof x === 'bigint') {
|
||||
return x;
|
||||
}
|
||||
return $floor(x);
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue