I have two objects like this:
{ Id: 8, ProductGroups: [{ ProductGroupId: 1, show: false }, { ProductGroupId: 2, show: false }], DependantAnswers: [{ QuestionId: 6, answer: "female" }] },
{ Id: 9, ProductGroups: [{ ProductGroupId: 1, show: false }, { ProductGroupId: 2, show: false }], DependantAnswers: [{ QuestionId: 6, answer: "female" }, { QuestionId: 8, answer: "yes" }] }
I'm trying to separate them only to manipulate with object 8, but whichever if in .each I try, object with Id 9 passes because it has same DependantAnswers like object with Id 8.