Array.prototype.includes with multiple arguments

Shahar Or mightyiampresence at gmail.com
Fri Jun 10 20:46:32 UTC 2016


Hey everyone and thank you for making the JavaScript community as awesome
as it is. It is only this awesome because it includes you.

```
community.includes(...members) // true
// will be equivalent to
members.every(m => community.includes(m)) // true
```

Is it backwards compatible?

Would you use it?

Any other thoughts, please?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20160610/d60ac7a0/attachment.html>


More information about the es-discuss mailing list