So I want to be able to count the number of properties within each object in an array...
value = [
0: { personId: "0003678", seniorStatus: "Yes", juniors: "maybe" }, //3
1: { personId: "0001657", seniorStatus: "No", juniors: "No" }, //3
2: { personId: "0002345", seniorStatus: "No", juniors: "No", infants: "Maybe" } //4
Basically I want to do this to check for a change. If more than 3 properties in any of the objects. I know how to count the number of objects, in this case there are 3. But need to count the properties within. If more than 3 return true.
I am struggling to find anything that gets past the counting of Objects question. I am using lodash if useful for an answer.