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

0 like 0 dislike
5 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 | 5 views

1 Answer

0 like 0 dislike
by

Related questions

110,608 questions
257,186 answers
0 comments
33,687 users