I currently have an array of objects such as
[{Test: "123", Two: "234"}, {Test: "123", Two: "234"}, {Test: "123", Two: "222"}]
Using linq.js how would I be able to run a group by and return a list that returns the count of the duplicate (test,two) values. I want my output to be something like:
[{Key: {Test: "123", Two: "234"}, Value:2}, {Key: {Test: "123", Two: "222"}, Value:1} ]
I am thinking the GroupBy method in Linq.js might help however I am not sure how to use it.