Skip to content

Instantly share code, notes, and snippets.

@jgwhite
Created November 1, 2017 09:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jgwhite/5783a2fe8809bd10fb65cf3dd3bfa440 to your computer and use it in GitHub Desktop.
Save jgwhite/5783a2fe8809bd10fb65cf3dd3bfa440 to your computer and use it in GitHub Desktop.

TL;DR Ember added contains before it was slated for ES7. When the contains (now includes) spec did arrive, it was a bit of a problem that Ember was “squatting” the method name with a slightly different implementation. Fortunately, Ember had been designed to “eventually align” with javascript as it becomes more capable. Thus, this was the moment prototype extensions were retired as a default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment