Set.prototype.toggle

dante federici c.dante.federici at gmail.com
Sun Oct 29 08:06:27 UTC 2017


What's the case for toggle other than nice to have? In general, I find
toggle actions to be implicitly dependent on existing state -- that is,
anywhere you have toggle you can just as easily say `add(value)` or
`delete(value)`.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20171029/43ff8ea3/attachment.html>


More information about the es-discuss mailing list