Skip to content

Instantly share code, notes, and snippets.

@qetr1ck-op
Last active December 30, 2015 13:07
Show Gist options
  • Select an option

  • Save qetr1ck-op/b9fc7a18ff660c08ea27 to your computer and use it in GitHub Desktop.

Select an option

Save qetr1ck-op/b9fc7a18ff660c08ea27 to your computer and use it in GitHub Desktop.
const removeCounter = (list, i) => {
/*return list.slice(0, i)
.concat(list.slice(i + 1))*/
return [
...list.slice(0, i),
...list.slice(i + 1)
];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment