how can group data in angular 2 typescript. aware done using "group by" filter in angular 1.x, not getting how group data in angular 2. have array: import {employee} './employee'; export var employees: employee[]; employees = [ { id: 1, firstname: "john", lastname: "sonmez", department: 1, age: 24, address: "24/7, working hours apartment, cal. us", contactnumber: "+968546215789" }, { id: 2, firstname: "mark", lastname: "seaman", department: 2, age: 25, address: "32-c, happy apartments, block-9c, cal. us", contactnumber: "+968754216984" }, { id: 3, firstname: "jamie", lastname: "king", department: 3, age: 32, address: "54/ii, glorydale apartment, cal. us", contactnumber: "+967421896326" }, { id: 5, firstname: "jacob", lastname: "ridley", department: 5, age: 24,...