log2trace-ui - v1.0.0-RC1
    Preparing search index...

    Function normalizeOptions

    • Coerce a heterogeneous list of dropdown options into FilterOptions.

      Bare strings become an option whose value and label are both the string. Objects missing a label fall back to using value as the displayed label. Useful when the <trace-filter options="..."> attribute contains JSON that may have been authored either way.

      Parameters

      Returns FilterOption[]

      A new array of fully-formed FilterOptions.