Proposal: Add Map.prototype.putIfAbsent

Jack Lu jacklu at
Thu Oct 11 16:18:43 UTC 2018

Don't you think the name `putIfAbsent` is somewhat misleading? In the sense that the purpose of this function is to get the value, with a side effect of setting a default value when it's absent.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the es-discuss mailing list