js push to dictionary and remove the last item code example Example: js delete object in dict delete myArray[id_to_remove];