I am working with an array that contains multiple objects. Each object has a 'Position' and 'Mandatory' field:
quesListArray = [
{Position: 1, Mandatory: false},
{Position: 2, Mandatory: true},
{Position: 3, Mandatory: false},
...
...
]
I need to find out if the 'Mandatory' field in every object is set to false. If all objects have 'Mandatory' set to false, I want to display a message.
Any assistance on how to achieve this would be greatly appreciated. Thank you.