I’m working with tons of array generated from a XML.
How should I go about creating a search function that will be able to search and retrieve a particular nod from the array.
Sth to do with .toLowerCase() and getIndexOf? The search function should be able to search and retrieve any text that contain the letter/letters… not the whole word. Like for example if user enter “gre”, it should retrieve results containing “great” and so on.
I’m not exactly sure how I should apply.
Help will be greatly appreciated! Cheers!