// To find a specific object in an array of objects myObj = myArrayOfObjects.find(obj => obj.prop === 'something');
in mongodb, returns a counter object, use find_one if you want to get the first term of the item.