map and delete string object from array javascript code example Example: js delete object in map my_map.delete(id)