import negativeArray = require('negative-array'); const unicorn = negativeArray(['pony', 'cake', 'rainbow']); unicorn[-1];