hed-typescript API
    Preparing search index...

    Function findRowProblems

    • Find the lines other than the first that are empty or have a different number of cells than the first line (specification 3.2.10, TABULAR_INVALID).

      An empty line is reported as an empty line only, not also as a wrong cell count. For text contents, an empty line is a line with no characters; for {headers, rows} data, a row with no cells, since a row [''] is one empty cell. In {headers, rows} data, rows[0] is the header row and the expected count is the number of headers.

      Parameters

      • data: string | OldParsedTSV

        The contents of a TSV file, or parsed TSV data in the old BIDS format.

      Returns TsvRowProblems

      The empty lines and the lines with a wrong cell count, by 1-based file line number.