Files
NapCatQQ/.pnpm-store/v3/files/5b/49f1059c4ba49bd195f1d0fc278aee79cd4bd11c6af46df4f3ef5095c4a3925e6b8576f5ae2d5277828e7c957b5bacc8d7dc6485fb138a7350de3fa3d399b7
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

15 lines
287 B
Plaintext

'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);
};