myarray
v1.0.3
Published
``` npm install myarray --save ```
Downloads
2
Readme
npm install myarray --save
var myarray=require('myarray');
var arr=[
{
class:'tom',
name:'tom',
age:19
}, {
class:'jerry',
name:'jerry',
age:21
}, {
class:'cat',
name:'cat',
age:23
}, {
class:'cat',
name:'tiger',
age:25
}, {
class:'tom',
name:'tom2',
age:12
},
];
console.dir(myarray.set(arr).groupByKeyName('class',{
className:'class',
result:'result'
},function(obj){
return obj;
}).get());