showing results for - "find and delete element from array js"
Perrine
18 Jun 2016
1const items = ['a', 'b', 'c', 'd', 'e', 'f']
2const i = 2
3const filteredItems = items.slice(0, i).concat(items.slice(i + 1, items.length))
4// ["a", "b", "d", "e", "f"]
5
similar questions
queries leading to this page
find and delete element from array js