Closed negezor closed 5 months ago
The default implementation already returns boolean if the value has been deleted.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/delete#return_value
It's also faster since we don't double check the hashmap for a value.
Thanks for the optimization 😊
The default implementation already returns boolean if the value has been deleted.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map/delete#return_value
It's also faster since we don't double check the hashmap for a value.