remove item from dictionary javascript code example
Example 1: js delete object in dict
delete myArray[id_to_remove];
Example 2: javascript delete dict value
const o = { lastName: 'foo' }
delete o['lastName']
delete myArray[id_to_remove];
const o = { lastName: 'foo' }
delete o['lastName']