Skip to content

Instantly share code, notes, and snippets.

@cesarfigueroa
Created January 2, 2017 22:01
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cesarfigueroa/20efa2a8c89f63e758c18ef1163a7bf6 to your computer and use it in GitHub Desktop.
Save cesarfigueroa/20efa2a8c89f63e758c18ef1163a7bf6 to your computer and use it in GitHub Desktop.
function moveItem(list, from, to) {
return list.delete(from).insert(to, list.get(from));
}
@MilesOkeefe
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment