Proposal: Add Map.prototype.putIfAbsent

Jack Lu jacklu at jacklu.me
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: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20181012/56c6d7df/attachment.html>


More information about the es-discuss mailing list