@svta/common-media-library
Version:
A common library for media playback in JavaScript
23 lines • 673 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isCmcdV1Key = isCmcdV1Key;
const CMCD_V1_KEYS_js_1 = require("./CMCD_V1_KEYS.js");
const isCmcdCustomKey_js_1 = require("./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}
*/
function isCmcdV1Key(key) {
return CMCD_V1_KEYS_js_1.CMCD_V1_KEYS.includes(key) || (0, isCmcdCustomKey_js_1.isCmcdCustomKey)(key);
}
//# sourceMappingURL=isCmcdV1Key.js.map