HED JavaScript Library
    Preparing search index...

    Function parseTSVHeader

    • Return the cells of the first header line of TSV contents (see splitRows), without splitting the other lines.

      Line breaks are \r\n, \r or \n, as in splitRows, so the result equals the header row that parseTSV uses. The cells are not trimmed.

      Parameters

      • contents: string

        The contents of a TSV file.

      Returns string[]

      The header cells; empty when the contents have no header line.