var BringToTop = function (array, item){ var currentIndex = array.indexOf(item); if (currentIndex !== -1 && currentIndex < _AN_Read_length('length', array)) { array.splice(currentIndex, 1); array.push(item); } return item; } ; module.exports = BringToTop;