Set.add should return boolean #4210
Labels
area-core-library
SDK core library issues (core, async, ...); use area-vm or area-web for platform specific libraries.
closed-duplicate
Closed in favor of an existing report
This issue was originally filed by domi...@google.com
Set.remove returns a boolean indicating if the value was in the set. Set.add should do the same. This would allow code to try to add something and then only do something expensive if this resulted in a new addition to the set.
The text was updated successfully, but these errors were encountered: