Click here to Skip to main content
15,920,031 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
arrobj = [];

arrobj.push({FieldID:1,Name:'test1'});
arrobj.push({FieldID:1,Name:'test1'});
arrobj.push({FieldID:1,Name:'test1'});
arrobj.push({FieldID:2,Name:'test2'});
arrobj.push({FieldID:3,Name:'test3'});

What I have tried:

I want to remove the FieldID = 1 in "arrobj" Array..plz suggests any best way.
Posted
Updated 14-May-19 2:22am
Comments
venkatesh (chennai) 14-May-19 8:50am    
var rmv = 1;
arrobj = arrobj.filter(obj => obj.FieldID != rmv);

got answer

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900