UNPKG

@hopeio/utils

Version:
13 lines (12 loc) 266 B
const r = { install() { typeof Array.prototype.at != "function" && (Array.prototype.at = function(t) { if (t < 0) return this[this.length + t]; if (!(t >= this.length)) return this[t]; }); } }; export { r as prototypeInterceptor };