javascript delete in array index code example
Example 1: javascript remove from array by index
//Remove specific value by index
array.splice(index, 1);
Example 2: js remove element from array
let arrDeletedItems = array.splice(start[, deleteCount[, item1[, item2[, ...]]]])