DEV Community

Discussion on: Why to use Maps over Objects in JS ?

Collapse
 
js_bits_bill profile image
JS Bits Bill

@lukeshiru
Wouldn't map.delete(key) be considered a mutation? Why is delete obj.key an evil mutation but not deleting from a map?

Some comments have been hidden by the post's author - find out more