Deletes the element with the specified key.
delete(key)
key
The key of the element to remove from the Map object.
true if an element in the Map object existed and has been removed, or false if the element does not exist.
const map = new Map()
map.set("myKey", "myValue")
map.delete("myKey")
true