@svta/common-media-library
    Preparing search index...

    Function isCmcdResponseKey

    • Beta

      Check if a key is a valid CMCD response key.

      Parameters

      • key: string

        The key to check.

      Returns key is
          | "url"
          | "d"
          | "br"
          | "dl"
          | "rtp"
          | `${string}-${string}`
          | "v"
          | "ot"
          | "tb"
          | "bl"
          | "mtp"
          | "nor"
          | "su"
          | "cid"
          | "pr"
          | "sf"
          | "sid"
          | "st"
          | "bs"
          | "bsd"
          | "cmsdd"
          | "cmsds"
          | "rc"
          | "smrt"
          | "ttfbb"
          | "ttlb"
          | "ab"
          | "tbl"
          | "cdn"
          | "ltc"
          | "bg"
          | "sta"
          | "pb"
          | "ts"
          | "tpb"
          | "lb"
          | "tab"
          | "lab"
          | "pt"
          | "ec"
          | "msd"
          | "sn"
          | "df"
          | "cs"
          | "ttfb"

      true if the key is a valid CMCD request key, false otherwise.

      equal(isCmcdResponseKey('br'), true);
      equal(isCmcdResponseKey('e'), false);