Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

delete element of array javascript

> let array = ["a", "b", "c"];
> let index = 1;
> array.splice(index, 1);
[ 'b' ]
> array;
[ 'a', 'c' ]
Source by bytearcher.com #
 
PREVIOUS NEXT
Tagged: #delete #element #array #javascript
ADD COMMENT
Topic
Name
2+2 =