changes the index of an item by moving it to the start of the list by the defined count of steps
id | string|number | id of the item in question |
step | number | the count of steps, optional, 1 by default |
myList.moveUp(id);
//or
myList.moveUp(id,10);
Back to top