jsadvent/lib/_pollute/number.js

8 lines
135 B
JavaScript

Object.defineProperty(Number.prototype, 'n', {
enumerable: false,
configurable: false,
get() {
return BigInt(this);
},
});