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

9

u/[deleted] Oct 26 '21

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