loading...

re: How to shift array position in vanilla JavaScript VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Probably that array is not going to be accessed using the index, it looks like an unordered collection. If this is true you need a linked list not...
 

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. :)

Code of Conduct Report abuse