My JSON array looks like this:
[
{
French: 'Hello',
Spanish: 'Hello1',
english:'Hello2'
},{
French: 'Hello3',
Spanish: 'Hello4',
english:'Hello5'
},{
French: 'Hello6',
Spanish: 'Hello7',
english:'Hello8'
},{
French: 'Hello9',
Spanish: 'Hello10',
english:'Hello81'
}
];
In a JavaScript array, I want to be able to search for items based on their values.
For example, if I input "Hello6" as the search string, I should retrieve the 3rd item in the list. I'm looking for a generic search function rather than having to manually search through each element.