how to remove an object from array in react native

Solutions on MaxInterview for how to remove an object from array in react native by the best coders in the world

showing results for - "how to remove an object from array in react native"
Carmen
27 Jun 2020
1const items = ['a', 'b', 'c', 'd', 'e', 'f']
2const valueToRemove = 'c'
3const filteredItems = items.filter(item => item !== valueToRemove)
4// ["a", "b", "d", "e", "f"]
5