This commit is contained in:
wuxu
2026-03-31 17:51:43 +08:00
commit 8d726651e2
4756 changed files with 984942 additions and 0 deletions
+4
View File
@@ -0,0 +1,4 @@
'use strict';
/** @type {import('./abs')} */
module.exports = Math.abs;
+4
View File
@@ -0,0 +1,4 @@
'use strict';
/** @type {import('./floor')} */
module.exports = Math.floor;
+6
View File
@@ -0,0 +1,6 @@
'use strict';
/** @type {import('./isNaN')} */
module.exports = Number.isNaN || function isNaN(a) {
return a !== a;
};
+4
View File
@@ -0,0 +1,4 @@
'use strict';
/** @type {import('./max')} */
module.exports = Math.max;
+4
View File
@@ -0,0 +1,4 @@
'use strict';
/** @type {import('./min')} */
module.exports = Math.min;
+4
View File
@@ -0,0 +1,4 @@
'use strict';
/** @type {import('./pow')} */
module.exports = Math.pow;
+4
View File
@@ -0,0 +1,4 @@
'use strict';
/** @type {import('./round')} */
module.exports = Math.round;
+11
View File
@@ -0,0 +1,11 @@
'use strict';
var $isNaN = require('./isNaN');
/** @type {import('./sign')} */
module.exports = function sign(number) {
if ($isNaN(number) || number === 0) {
return number;
}
return number < 0 ? -1 : +1;
};