UNPKG

@svta/common-media-library

Version:
20 lines 512 B
import { CMCD_V1_KEYS } from './CMCD_V1_KEYS.js'; import { isCmcdCustomKey } from './isCmcdCustomKey.js'; /** * Filter function for CMCD v1 keys. * * @param key - The CMCD key to filter. * * @returns `true` if the key should be included, `false` otherwise. * * @group CMCD * * @beta * * @example * {@includeCode ../../test/cmcd/isCmcdV1Key.test.ts#example} */ export function isCmcdV1Key(key) { return CMCD_V1_KEYS.includes(key) || isCmcdCustomKey(key); } //# sourceMappingURL=isCmcdV1Key.js.map