How in js to check for the presence of the element in the array?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
16 views
As in the array type
var users = [{ id: 12, name: Adam },{ id: 14, name: Bob },{ id: 16, name: Charlie },{ id: 18, name: David } ]


check for the existence of the property id with a value of 18
by | 16 views

1 Answer

0 like 0 dislike
by

Related questions

110,608 questions
257,187 answers
0 comments
40,796 users