how to use splice for drag and drop delete code example
Example: splice javascript
let arrDeletedItems = arr.splice(start[, deleteCount[, item1[, item2[, ...]]]])
let arrDeletedItems = arr.splice(start[, deleteCount[, item1[, item2[, ...]]]])