This commit is contained in:
bwstudio
2025-10-22 08:19:00 +08:00
parent 467b04e5b0
commit 97fbfe08d7
6040 changed files with 529099 additions and 9685 deletions
+9
View File
@@ -0,0 +1,9 @@
'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);
};