Wizcorp/node-tomes — pull request #32 by antoniogs (2013-12-11 01:13:19+00:00)
Title: 20131211_antoniogs

The swap method has been updated, for be able of to swap two elements using the keys, the tomes, or any combination of them.

Now is possible to make:
var myArray = ['bread', 'bacon', 'tomato', 'egg' ]
myArrayTome = Tome.conjure(myArray);

myArrayTome.swap(0, 1);
myArrayTome.swap(0, myArrayTome[1]);
myArrayTome.swap(myArrayTome[0], 1);
myArrayTome.swap(myArrayTome[0], myArrayTome[1]);