let arr = [1,2,3,45,6,7]
const arrProxy = new Proxy(arr,{
get(target,proerpty){
if(proerpty>=0){
return Reflect.get(target,proerpty)
}
return Reflect.get(target,target.length+Number(proerpty))
}
})
console.log(arrProxy[-1]);