removing the values inside object in array using map function code example Example: js delete object in map my_map.delete(id)