Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

remove element from array javascript by index

const items = ['a', 'b', 'c', 'd', 'e', 'f']
const i = 3
const filteredItems = items.slice(0, i).concat(items.slice(i+1, items.length))

console.log(filteredItems)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #remove #element #array #javascript #index
ADD COMMENT
Topic
Name
3+8 =