Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(lru): use map.delete() directly (#713)
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. --------- Co-authored-by: Luke Karrys <[email protected]>
- Loading branch information