deno.land / x / masx200_leetcode_test@10.6.5 / 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);}
Version Info