Solución
solution.tsTypeScript
export function commonChars(a: string, b: string): number {
// Escribe tu solución aquí
let count={}
for (const charT of a.split('')) {
if(b.toLowerCase().includes(charT)){
count[charT] = 1
}
}
return Object.keys(count).length;
}0respuestas