2 ms·
> Certainly you will remember the difference now, after writing this. Indeed, part of my motivation for writing this was to remember it. I have spent too much
by galaxyLogic 3y ago
> Certainly you will remember the difference now, after writing this.
Indeed, part of my motivation for writing this was to remember it. I have spent too much time thinking about what shift() vs. unshift() do.
The other part was that I wanted to know how others figure out when to use shift() and when to use unshift(). Thanks for everybody for your suggestions.