DEV Community

Deepak
Deepak

Posted on

Find and remove the objects in the mutable Array using Ember Javascript

To find the records in the array by using many ways like find, findBy, peekRecord refer [https://guides.emberjs.com/v3.14.0/models/finding-records/] lets look at a simple example:

     array=[{name:"deepak"},{name:"aravind"},{name:"hari"}]

In this array you find the corresponding data by its property.

     remove=this.array.findBy("name","deepak");
     this.array.removeObject(remove);

This will remove the corresponding object from the mutable array.To remove the object is also have various methods. For more reference [https://medium.com/quangtn0018/ember-js-remove-objects-from-ember-mutable-arrays-f95192fbd0f0]

Top comments (1)

Collapse
 
gssj_iwhs_1c1d16d1fc3d2dc profile image
Gssj Iwhs

Laser hair removal for Brazilian services offers not only long-lasting smoothness and reduced hair growth but also enhances personal confidence, improves skin health, and brings convenience into the personal care routine. The benefits of smoother, irritation-free skin with laser treatment brazilian , combined with the comfort and hygiene advantages, make laser treatment a top choice for many seeking a permanent solution to hair removal in this sensitive area.