25 July 2017 07:45
JAVASCRIPT - How do I remove a particular element from an array in JavaScript? - Stack Overflow
There are two major approaches:
- splice(): anArray.splice(index, 1);
- delete: delete anArray[index];
"array.filter(...)" function to remove unwanted items from array
1
(1 marks)