jsadvent/lib/_pollute/number.js

8 lines
135 B
JavaScript
Raw Permalink Normal View History

2020-12-20 01:56:58 +00:00
Object.defineProperty(Number.prototype, 'n', {
enumerable: false,
configurable: false,
get() {
return BigInt(this);
},
});