Initial commit

This commit is contained in:
2026-05-24 22:24:39 +07:00
commit 8c15ca0c5d
962 changed files with 176218 additions and 0 deletions
+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;
};