@me2em/react
    Preparing search index...

    Function isGridSelectionCorrect

    • Selection is compared IN ORDER: selected[i] must equal correctIndices[i]. The i-th click must be the i-th word of the phrase. Repeated phrase words map to distinct grid cells.

      Parameters

      • grid: { words: string[]; correctIndices: number[] }
      • selected: number[]

      Returns boolean