hed-typescript API
    Preparing search index...

    Function firstNonEmptyLineHasHed

    • Determine whether a cell of the first non-empty line of TSV contents is HED once its leading and trailing whitespace is removed.

      Such a file carries HED even when a malformed first line hides its HED column (specification 3.2.10), so it is validated and the malformed line reported.

      Parameters

      • contents: string

        The contents of a TSV file.

      Returns boolean

      Whether the first non-empty line names a HED column.