x/masx200_leetcode_test/counting-words-with-a-given-prefix/index.ts
1234export default function prefixCount(words: string[], pref: string): number { return words.reduce((a, v) => a + Number(v.startsWith(pref)), 0);}