hed-typescript API
    Preparing search index...

    Function parseTSVHeader

    • Return the cells of the first line of TSV contents, the header (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. An empty first line is one blank column name, [''].

      Parameters

      • contents: string

        The contents of a TSV file.

      Returns string[]

      The header cells; empty when the contents are empty.