Skip to content

Commit

Permalink
Merge pull request #15948 from bekzod/remove-remaining-contains
Browse files Browse the repository at this point in the history
[CLEANUP] remove ArrayMixin#contains
  • Loading branch information
rwjblue authored Dec 9, 2017
2 parents ded4256 + 9111f30 commit 87be17d
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions packages/ember-runtime/lib/mixins/array.js
Original file line number Diff line number Diff line change
Expand Up @@ -306,17 +306,6 @@ const ArrayMixin = Mixin.create(Enumerable, {
return objectAt(this, get(this, 'length') - 1);
}).readOnly(),

// optimized version from Enumerable
contains(obj) {
deprecate(
'`Enumerable#contains` is deprecated, use `Enumerable#includes` instead.',
false,
{ id: 'ember-runtime.enumerable-contains', until: '3.0.0', url: 'https://emberjs.com/deprecations/v2.x#toc_enumerable-contains' }
);

return this.indexOf(obj) >= 0;
},

// Add any extra methods to EmberArray that are native to the built-in Array.
/**
Returns a new array that is a slice of the receiver. This implementation
Expand Down

0 comments on commit 87be17d

Please sign in to comment.