You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
347 B
16 lines
347 B
const CadenceQuality = Object.freeze({
|
|
HIGH: "high",
|
|
MEDIUM: "medium",
|
|
LOW: "low",
|
|
UNKNOWN: "unknown",
|
|
});
|
|
|
|
function validateCadenceQuality(v) {
|
|
const set = CadenceQuality;
|
|
if (!v) return set.UNKNOWN;
|
|
const vals = Object.values(set);
|
|
return vals.includes(v) ? v : set.UNKNOWN;
|
|
}
|
|
|
|
export { validateCadenceQuality, CadenceQuality };
|