Created
December 1, 2018 22:12
-
-
Save darksh3ll/08ea1c88b8d2f8cb20263db347719d16 to your computer and use it in GitHub Desktop.
supprimer dans un tableau avec la methode splice
This file contains hidden or 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
| function supprimer(arr,id) { | |
| const index = arr.indexOf(id) | |
| arr.splice(index,1) | |
| return del | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment