binding function for Array.prototype.at(-1).