Adding Negative Indexes to JavaScript Arrays

Every time I return from ruby/python to JavaScript I’ll fall into the same mistake of writing arr[-1] and not getting the last item. JavaScript has a weird way of stringifying object keys which leads to stringifying array indexes which renders the above n… Read more

Similar