check if value exists in array of objects javascript

back to top