including-modules

This commit is contained in:
Kismet Hasanaj
2026-05-03 00:14:08 +02:00
parent ec83a0d879
commit 39a8a128be
20434 changed files with 3906546 additions and 3 deletions
+14
View File
@@ -0,0 +1,14 @@
'use strict';
// var modulo = require('./modulo');
var $floor = require('math-intrinsics/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);
};