Skip to content

Instantly share code, notes, and snippets.

@lean8086
Created March 5, 2013 21:13
Show Gist options
  • Save lean8086/5094331 to your computer and use it in GitHub Desktop.
Save lean8086/5094331 to your computer and use it in GitHub Desktop.
Walk through a collection killing each walked position
var elements = [el1, el2, elN];
while (elements.length) {
elements.shift(); // This is the element
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment