Javascript Data Structure Stack and Queue: How does push/pop work faster than shift/unshift?
As we know objects allow us to store keyed collections of values. That's good and very beneficial.
But what if we need an ordered collection, where we store the elements in the 1st, 2nd, 3rd, and so on position. So, for such a case it's not convenien...
haroonhayat.hashnode.dev4 min read