HED JavaScript Library
    Preparing search index...

    Function columnNameText

    • Return a column name as text, as a text header would hold it.

      A string is returned unchanged. null, undefined and NaN become '' (a blank name). A whole number is written without a decimal point and in full digits (1 and 1.0 both become '1'), as hedtools writes it; anything else goes through String (1.5 becomes '1.5').

      Parameters

      • name: any

        A column name from a Map key or an old-format header.

      Returns string

      The name as text.