Relative Content

Tag Archive for javascriptreactjsarrayssortinggrouping

Group an array of objects into an array of arrays of objects

From an array of objects consisting of customer details, I would like to form a new array of arrays of objects grouped by the same name and email. That is, the new array will contain arrays of objects with the same name and email along with it’s other individual original details.