LeetCodeCounting Words With a Given PrefixCounting Words With a Given PrefixEasyArrayStringString MatchingSolution export function prefixCount(words: string[], pref: string): number { return words.filter((word) => word.startsWith(pref)).length; }LeetCodeCounting Words With a Given Prefixhttps://leetcode.com/problems/counting-words-with-a-given-prefix