Hello all,

I have an object array and I need to get into a new array it grouped by two 
properties and a count for each.

Example:
any[] array:  Group on CustomerGroup and Type
CustomerId, CustomerGroup, Type
1  A  TypeA
2  A  TypeA
3  B  TypeA
4  B  TypeB
5  C  TypeB

I want a new array of the following:
TotalCustomer, CustomerGroup, Type
2                          A                          TypeA
1                           B                         TypeA
1                           B                          TypeB
1                            C                         TypeB

How can I get that into new any array?

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/angular/69187a5a-b7f0-41e6-9c66-9fcc1b617d4en%40googlegroups.com.

Reply via email to