Solved
Forum Discussion
bojanvelevski
3 years agoValued Contributor
Since you have multiple objects in the test array, you’ll need to check every object separately. Mapping an additional field or replacing the object with a value that states if the group1 is empty is the way to go.
$test.map(x=>x.extend({"groupLength":x.group1.length})