Function lookupArrayToArrayArray

  • Parameters

    • lookupArray: boolean[][]

      an array of arrays of booleans

    Returns number[][]

    for every top level array, an array that contains the indices with truthy values.

    Description

    Convert an array of arrays of booleans into an array of arrays of numbers, where those numbers are the indices in the array at which those booleans appear.