var MoveUp = function (array, item){ var currentIndex = array.indexOf(item); if (currentIndex !== -1 && currentIndex < _AN_Read_length('length', array) - 2) { var item2 = array[currentIndex + 1]; var index2 = array.indexOf(item2); array[currentIndex] = item2; array[index2] = item; } return array; } ; module.exports = MoveUp;