Migration datamodels !

This commit is contained in:
2026-01-09 17:11:12 +01:00
parent 901df5b395
commit 66fe1418f0
3922 changed files with 316803 additions and 2103 deletions
+10
View File
@@ -0,0 +1,10 @@
"use strict";
if (!require("./is-implemented")()) {
Object.defineProperty(Math, "sign", {
value: require("./shim"),
configurable: true,
enumerable: false,
writable: true
});
}
+3
View File
@@ -0,0 +1,3 @@
"use strict";
module.exports = require("./is-implemented")() ? Math.sign : require("./shim");
+7
View File
@@ -0,0 +1,7 @@
"use strict";
module.exports = function () {
var sign = Math.sign;
if (typeof sign !== "function") return false;
return sign(10) === 1 && sign(-20) === -1;
};
+7
View File
@@ -0,0 +1,7 @@
"use strict";
module.exports = function (value) {
value = Number(value);
if (isNaN(value) || value === 0) return value;
return value > 0 ? 1 : -1;
};