paulmillr / es6-shim

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

find, findIndex, contains will no longer check for holes #280

Closed rwaldron closed 10 years ago

rwaldron commented 10 years ago

Discussion is here: https://bugs.ecmascript.org/show_bug.cgi?id=3107

Yes, inconsistent with existing Array methods, but I think better in the long term.

ljharb commented 10 years ago

Wait, is contains in for ES6?

domenic commented 10 years ago

It's technically in ES7, but will likely ship in browsers within a month or two, because version numbers don't matter ;)

ljharb commented 10 years ago

k, just making sure I don't get to add it to the es6-shim :-)