Created
April 9, 2021 09:11
-
-
Save IKatsuba/7f8951582d9b6e59a553e4579b0b1b8a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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