Solución
solution.tsTypeScript
export function wordSearch(grid: string[][], word: string): boolean {
let flatGrid = grid.flat();
for( let letter of word) {
const gridLetterIdx = flatGrid.indexOf(letter);
if ( gridLetterIdx === -1) return false;
flatGrid = flatGrid.splice(gridLetterIdx);
}
return true;
}0respuestas