I know i can add new element to Ember.Array object by using
var ArrayObject.push({/*new element*/});
but, i want to know that is it possible to put an element at a particular location easily like
ArrayObject.insertAt(num,{/*new element*/}))
Note: i know the hard way by slicing(http://ift.tt/1qul3F3) and cancate(http://ift.tt/1IODdgr).
Aucun commentaire:
Enregistrer un commentaire