grouparrayobject
v1.0.1
Published
This Package will group the array of object by key name with comma
Maintainers
Readme
This Package will group the Array of objects on the basis of key with comma seperated values.
const grouparrayobject = require('grouparrayobject')
let arrObject = [ { "name":"Rohan", "age":12}, { "name":"Mohit", "age":22}, { "name":"Shawn", "age":18}, { "name":"Michael", "age":19}, ];
console.log(grouparrayobject(arrObject));will output-
[ { name: 'Rohan,Mohit,Shawn,Michael', age: '12,22,18,19' } ]
