Array.prototype.includes with multiple arguments

Shahar Or mightyiampresence at
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: <>

More information about the es-discuss mailing list