x/masx200_leetcode_test/string-matching-in-an-array/index.ts
1234567function stringMatching(words: string[]): string[] { return words.filter((word) => words.find((par) => par.length > word.length && par.includes(word)) );}export default stringMatching;