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

10 lines
217 B
Plaintext

'use strict';
var $abs = require('math-intrinsics/abs');
// https://262.ecma-international.org/11.0/#eqn-abs
module.exports = function abs(x) {
return typeof x === 'bigint' ? BigInt($abs(Number(x))) : $abs(x);
};