In the given array, I am looking to find the first letters in multiple words within the same matrix. It should search through each word and return in an array if found.
For example:
const data= [
"the lions of teranga",
"tiger woods",
"The Truman Show",
"Shutter Island",
"The Gold Rush",
]
]
If it matches "sh", it should search through each word and return:
["Shutter Island", "The Truman Show"] but not The Gold Rush
If it matches "lions", it should search through each word and return:
["the lions of teranga"]