Thanks Isiah, Yes I suggested it in https://github.com/keithamus/proposal-array-last/issues/28 but I think it's going in a different direction
Array.prototype.at is probably not in the spirit of String.prototype.at proposal https://github.com/mathiasbynens/String.prototype.at/issues/2 I think I should rename my proposal to something like protocol-index or symbol.index On Thu, Dec 12, 2019 at 3:58 AM Isiah Meadows <[email protected]> wrote: > Have you considered generic `array.at(n)` where `n` is either a > positive offset from `0` or a negative offset from `array.length`? > This is also related to Mathias Bynens' `String.prototype.at` > proposal: https://github.com/mathiasbynens/String.prototype.at > > Also, you might have better luck sugggesting this in the stage 1 > proposal's repo: https://github.com/keithamus/proposal-array-last/ > > > ----- > > Isiah Meadows > [email protected] > www.isiahmeadows.com > > ----- > > Isiah Meadows > [email protected] > www.isiahmeadows.com > > > On Sat, Dec 7, 2019 at 2:30 PM Cyril Auburtin <[email protected]> > wrote: > > > > https://github.com/caub/proposal-array-nth-last > > > > This is mostly in reaction of > https://github.com/keithamus/proposal-array-last. The initial idea is > great, but the approach in that proposal is quite limited, cumbersome > > > > I'm happy if someone can help writing some ES spec for it > > _______________________________________________ > > es-discuss mailing list > > [email protected] > > https://mail.mozilla.org/listinfo/es-discuss >
_______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

