Conversation
|
@alexspeller Basically, I suggest that |
fb72b45 to
d0d6fa0
Compare
|
@mixonic updated RFC to reflect that |
text/0000-contains-to-includes.md
Outdated
|
|
||
| # How We Teach This | ||
|
|
||
| Update any references in docs and guides to `includes` |
There was a problem hiding this comment.
A deprecation guide also needs to get written, and since includes and contains seem to have slightly different semantics, the guide should address that with examples of how to migrate existing code.
There was a problem hiding this comment.
We might also want to indicate in the API documentation that this is a polyfill.
d0d6fa0 to
b81ccfb
Compare
|
@locks updated based on your comments |
|
We discussed in the core team meeting yesterday, we are 👍 on this. |
|
:-D |
|
I think I can try to handle this if still available One thing to confirm, it has to be implemented also in Enumerable (without fromIndex), right ? Not only in Array ? |
|
FYI - I created https://github.com/rwjblue/ember-runtime-enumerable-includes-polyfill to make this a bit easier for addons to avoid deprecations, use the newer syntax, and continue to support older versions of Ember. |
containsis implemented onEmber.Array, but contains was renamed to includes in 2014 - shouldcontainsbe deprecated in favour of anincludesmethod in ember?Rendered