Skip to content

Instantly share code, notes, and snippets.

@rogatty
Created December 19, 2017 15:57
Show Gist options
  • Save rogatty/dcacd463bfe585078fad77beb54cb48f to your computer and use it in GitHub Desktop.
Save rogatty/dcacd463bfe585078fad77beb54cb48f to your computer and use it in GitHub Desktop.
Ember.A().slice() with Array prototype extended
import Ember from 'ember';
export default Ember.Controller.extend({
type: Ember.computed(function () {
// it's function
return typeof(Ember.A().slice().setEach);
})
});
{
"version": "0.12.1",
"EmberENV": {
"EXTEND_PROTOTYPES": {
"Array": true
},
"FEATURES": {}
},
"options": {
"use_pods": false,
"enable-testing": false
},
"dependencies": {
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.3/jquery.js",
"ember": "2.17.0",
"ember-template-compiler": "2.17.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment