Negative array index support
array[-1]using ES6 Proxy
$ npm install --save negative-array
var negativeArray = ;// adds negative array index support to any passed arrayvar unicorn = ;// get the last item by using an negative indexconsole;//=> rainbow// OMG, YES!
This should go without saying; don't use in production.
MIT © Sindre Sorhus