HED JavaScript Library
    Preparing search index...

    Function findHeaderProblems

    • Find the column names that break the rules for the first line of a tabular file (specification 3.2.10).

      Parameters

      • headers: string[]

        The column names, exactly as written.

      Returns { blank: number[]; duplicate: string[]; padded: string[] }

      Each name that begins or ends with whitespace once, in header order; the 1-based positions of the blank names; and each other name that appears more than once (see findDuplicateHeaders).