Add a new method, named at(), to Array.prototype, String.prototype, and the TypedArray prototypes, that permit relative indexing with negative indices. ``` let arr = [1,2,3,4]; arr.at(-1); // Returns 4 ```
The .at name also has compatibility risk due to old versions of core-js unconditionally shipping a Stage 0 proposal. See https://github.com/zloirock/core-js/pull/889#issuecomment-732359377 for more discussion.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAN-e9e_t7j7WWnhUqAcve7vAnqi1Qp6nvF5g9%3D5%3Dm%3DPaE4XCfQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAOMQ%2Bw_pDe7GqVsge17xDxhfUcSM9-xaFL1CTViWzY39VSfU-A%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAN-e9e8akg18GTEqhE4LBQBXe3GZqsLhYW6FcP1RzapZ-Xgkow%40mail.gmail.com.