Negative Array

A negative array lets you access array elements from the end of an array. It can use negative indices. It works by wrapping a standard array with a Proxy. This proxy intercepts requests. You access a negative index like myArray[-1]. The get logic converts the negative number to a positive index. It then returns the element at that place.