Solución
solution.tsTypeScript
export function commonChars(a: string, b: string): number {
if(a === "" || b === "") return 0;
const newA = new Set(a.toLowerCase());
const newB = new Set(b.toLowerCase());
let count = 0;
newA.forEach(letter => {
if(newB.has(letter)) count ++
})
return count
}0respuestas