I need to find matrices where all the values are the same. How should I go through the array to compare the values?
Example true:
[{"id": 1 ,"value": cow},{"id": 1 ,"value": cow},{"id": 1 ,"value": cow}] // true
Example false:
[{"id": 1 ,"value": cow},{"id": 2 ,"value": cat},{"id": 1 ,"value": cow}] // false
Thanks