a = Ember.A()
a.pushObject(1);
a.pushObject(2);
a.slice(-1);
// [1]
a = Ember.ArrayProxy.create({content:[]});
a.pushObject(1);
a.pushObject(2);
a.slice(-1);
// [undefined, 1, 2]
a.content.slice(-1)
// [1]
Slicing the content
property of the ArrayProxy
works as intended, but in the case of DS.ManyArray
, slice
returns clientIds instead of objects.