js delete object item code example
Example 1: delete kvp object
// remove key-value pair from object
let person = {
name: 'Bob',
age: 34
};
delete person['age'];
console.log(person); // { name: 'Bob' }
Example 2: js delete object in dict
delete myArray[id_to_remove];