# Swapping Items in an Array | kirupa.com

**URL:** <https://forum.kirupa.com/t/swapping-items-in-an-array-kirupa-com/469403>\
**Category:** programming\
**Created:** [January 13, 2015, 7:18am UTC](https://forum.kirupa.com/t/swapping-items-in-an-array-kirupa-com/469403 "2015-01-13T07:18:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kirupa](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/kirupa/32/11616_2.png) [@kirupa](https://forum.kirupa.com/u/kirupa)\
**Post date:** [January 13, 2015, 7:18am UTC](https://forum.kirupa.com/t/swapping-items-in-an-array-kirupa-com/469403/1 "2015-01-13T07:18:41Z")

</div>

by [kirupa](http://www.kirupa.com/me/index.htm) | 11 January 2015

Arrays in JavaScript are really powerful, really awesome, and really REALLY funny. If you don't feel that way, that's too bad. They are the primary data structure you have for storing and manipulating collections of data, so you are pretty much stuck with them for a very long time. Despite their importance in the JavaScript world, there is a lot of things they don't support out of the box.

* * *
This is a companion discussion topic for the original entry at [http://www.kirupa.com/html5/swapping\_items\_array\_js.htm](http://www.kirupa.com/html5/swapping_items_array_js.htm)
