but also `delete obj[key]` ... not identical as operation, but with a
boolean return.

That leaves room for eventual Array#drop(item) that returns the item after
optionally mutating the array ^_^;;

On Thu, Oct 11, 2018 at 1:21 PM T.J. Crowder <
[email protected]> wrote:

> On Thu, Oct 11, 2018 at 10:59 AM Andrea Giammarchi
> <[email protected]> wrote:
>
> > TBH, for consistency sake with everything else in JS, I'd call
> > the method `delete`, since it's the one that returns `true` or
> > `false` in pretty much every other case.
>
> E.g., in Maps and Sets (and their weak cousins).
>
> -- T.J. Crowder
>
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to