An ES5 spec-compliant Array.prototype.some shim/polyfill/replacement that works as far down as ES3. This package implements the es-shim API interface. It works in an ...
Write code that enhances all arrays such that you can call the array.last() method on any array and it will return the last element. If there are no elements in the array, it should return -1. You may ...