Get true for every match from an array of objects compare to an enum
Solution 1:
Demo
const results: boolean[] = jobs.map(j => Object.values(jobFailureStatus)?.includes(j.description));
Demo
const results: boolean[] = jobs.map(j => Object.values(jobFailureStatus)?.includes(j.description));