Thoughts on WeakMaps

Juan Ignacio Dopazo dopazo.juan at gmail.com
Tue Jun 7 08:17:26 PDT 2011


On Tue, Jun 7, 2011 at 11:41 AM, David Bruant <david.bruant at labri.fr> wrote:

>  Le 06/06/2011 17:31, David Bruant a écrit :
>
> myWeakMap.set(key, value) doesn't return anything. It could return the
> previous value for the key (if such a thing exists). Is it intentional that
> the set function doesn't return anything?
>
> Anyone has thoughts on this point?
>
> Set and delete could return the weakmap.

Juan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20110607/33b2afd8/attachment-0001.html>


More information about the es-discuss mailing list