There has been many "array.last()" and similar proposals on es-discuss
One has emerged: https://github.com/keithamus/proposal-array-last It adds Array.prototype.lastIndex and Array.prototype.lastItem I'd like to extend this idea with a syntax like `arr[^n]` (stands for `arr[arr.length - n]`), I wrote it in https://github.com/keithamus/proposal-array-last/issues/28 The idea comes from @rbuckton https://github.com/tc39/proposal-slice-notation/issues/30
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

