Solución
solution.tsTypeScript
export function wordSearch(grid: string[][], word: string): boolean {
// Escribe tu solución aquí
let gridFlatted = grid.flat()
let idx = 0
let counter = 0
for (let w of [...word]) {
while (idx < gridFlatted.length) {
if (w == gridFlatted[idx]) {
counter++
break
}
idx++
}
}
console.log(counter, word.length)
return counter === word.length;
}0respuestas