DEV Community

Discussion on: Is JavaScript's .shift() Method a Performance Boost?

 
sh4bbi profile image
Shahnawaz Ansari

Your algorithm works for only 1 place shift, even with the edit you provided.