Negative array index support
$ npm install negative-array
const negativeArray = require('negative-array'); // Adds negative array index support to any given array const unicorn = negativeArray(['🐴', '🎂', '🌈']); // Get the last item by using a negative index console.log(unicorn[-1]); //=> '🌈' // OMG, YES!
- on-change - Watch an object or array for changes (Uses
- known - Allow only access to known object properties (Uses
MIT © Sindre Sorhus