Skip to content

Instantly share code, notes, and snippets.

@IKatsuba
Created April 9, 2021 09:11
Show Gist options
  • Save IKatsuba/7f8951582d9b6e59a553e4579b0b1b8a to your computer and use it in GitHub Desktop.
Save IKatsuba/7f8951582d9b6e59a553e4579b0b1b8a to your computer and use it in GitHub Desktop.
const items = [1, 2, 3, 4];
//before
const index = items.indexOf(item);
items.splice(index, 1);
//after
items.delete(item);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment