try {
Object.defineProperty(global.Math, "degrees", {
value: function (rad) {
if (typeof rad !== "number") {
thrownewError("TypeError: rad value should be a number.");
}
return rad * (180 / this.PI);
},
});
} catch (error) {
void0;
}
module.exports = {};