paulmillr / es6-shim

ECMAScript 6 compatibility shims for legacy JS engines
http://paulmillr.com
MIT License
3.11k stars 387 forks source link

Add Array.prototype.includes #417

Closed saghul closed 8 years ago

saghul commented 8 years ago

It would be a nice to have.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes

ljharb commented 8 years ago

It's part of ES7/ES2016, not ES6/ES2015.

I recommend https://www.npmjs.com/package/array-includes.

saghul commented 8 years ago

Ops, thanks for the pointer!