DEV Community

Discussion on: How to shift array position in vanilla JavaScript

Collapse
 
thejoezack profile image
Joe Zack

Great point! Array Data Structures aren't very efficient at arbitrarily inserting or plucking (even though JS provides convenient shift/deshift methods.)

With this small of a dataset it doesn't matter, but it's a great point. :)