Last active
December 20, 2020 12:55
-
-
Save NishantThapa/25f7eb4eb82b42aa8d7985139a86e37b to your computer and use it in GitHub Desktop.
Delete value from array on the basis of index
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 filteredItems = questions.slice(0, i).concat(questions.slice(i + 1, questions.length)) | |
// Es6 | |
Temp = array.filter((item) => item !== value); // it will return all values except "value" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment