let arr = [{ name:"MAERON", target:1, }, { name:"MAERON1", target:1, }] let final = arr.map(x=> Object.keys(x).filter(x=> ['target'].includes(x)).reduce((a,b)=> { a[b] = x[b] return a },{})) console.log(final)