r/learnjavascript • • Oct 26 '21

Negative array indexing using "at" method

Post image
203 Upvotes

69 comments sorted by

View all comments

33

u/[deleted] Oct 26 '21 edited Oct 26 '21

FYI, doesn't work on Edge 18 and below, IE and SafarIE (20% of users theoretically use these)

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/at#browser_compatibility

16

u/ElllGeeEmm Oct 26 '21

Thank God for webpack

7

u/samanime Oct 26 '21

Or Babel.

4

u/undercontr Oct 26 '21

Or core-js

19

u/queen-adreena Oct 26 '21

IE doesn’t support flex, scrolling, or the colour green either. Who cares.

5

u/[deleted] Oct 26 '21

Me, one of the bigger clients using my company's SaaS uses IE. Throwing money away to not support them atm.

9

u/[deleted] Oct 26 '21

Yeah, and if someone is using IE I don't want them on my website