I\'m having a hard time figuring out how to move an array element. For example, given the following:
var arr = [ \'a\', \'b\', \'c\', \'d\', \'e\']; <
var arr = [ \'a\', \'b\', \'c\', \'d\', \'e\'];
This is a really simple method using splice
Array.prototype.moveToStart = function(index) { this.splice(0, 0, this.splice(index, 1)[0]); return this; };