Trying to delete elements from object using delete , but while the value is gone, there's still "empty" in the object. as show in the image:
which causing unwanted behviour in a following iteration:
for (const [key, value] of ids.entries()) {
if (Object.values(this.widget_ids).indexOf(value) >= 0) {
delete ids[key]
}
}
now, i can't use pop or shift since . i need the option to remove by key, any idea how can i delete and remove this empty slot? or even better, remove while not having do deal with it at all?
