116
rated 0 times
[
120]
[
4]
/ answers: 1 / hits: 17156
/ 9 Years ago, tue, january 12, 2016, 12:00:00
What is the best way in JavaScript to go over array of object and check if an certain value already exist in one of the property of the array objects?
For example: I have array of objects as follow:
[{name:team1,members:3},{name:bestteam,members:4}]
Now I want to add a new object but I want to check that this object property name do not exist in the array before adding it
More From » javascript