I have around 10 objects in an array, each with 2 properties and their respective values.
My task is to determine whether a different value for one of those properties exists or not.
How can I accomplish this?
For example:
array = [{'family':'Roboto', 'type': 'Google'}, ......]
If I want to search for 'Roboto', how would I go about doing that?
EDIT:-
I am utilizing the Google Fonts API to compile all Google fonts into a single array, which I have successfully achieved. Codepen. Within this array, I store each font's 'family' and 'url'.
Now, I aim to allow users to search for a specific font. If the font is located, take some action; otherwise, display "Font not found".
How can I make this happen?
Note:- Any provided solutions would be greatly appreciated.