Solución
solution.tsTypeScript
export function commonChars(a: string, b: string): number {
// Escribe tu solución aquí
const aSet = new Set(a.toLowerCase().split(''))
const bSet = new Set(b.toLowerCase().split(''))
const common = Array.from(aSet).filter(char=> bSet.has(char)).length
return common;
}0respuestas