I have an array of objects(about 10 objects) with 2 properties having their respective values.
I want to check if another value of the same property exists or not.
How can i do that ?
For example
array = [{'family':'Roboto', 'type': 'Google'}, ......]
I want to search 'Roboto'. How do i do ?
EDIT:-
I am using Google Fonts API to get all the Google fonts into a single array. I have succeeded in that. Codepen. I store an array with the 'family' and 'url' of each font.
Now i want the user to search for a font. If the font is found, do something, else "Font not found"
How can i acheive this ?
Note:- A solution provided would be helpful.