I am looking to filter the contents of two arrays and then count the elements where "isimplemented: 'Yes'"
is true:
const array1 = [{ProjectName: "IT", Department: "Software"}]
const array2 = [{Name: "IT", isimplemented: "Yes"}]
The method I attempted did not yield the desired outcome. Can someone provide a revised approach using JavaScript?
((array1.map(data => data.ProjectName)).filter((data, index) => (data === array2[index].Name) && (array2[index].isimplemented === "Yes")).length