JSFiddle - React, Tailwind, and code Playground
JavaScript
var a = [ { "idx": 14, "property": "cuisine", "content": "아시아식", "regDate": "2018-05-21T05:56:49.000Z" }, { "idx": 22, "property": "location", "content": "강북/도봉/노원", "regDate": "2018-05-21T05:56:50.000Z" } ]
const groupByProperty = {}
a.forEach(b => {
console.log(b)
if (!groupByProperty[b.property]) {
groupByProperty[b.property] = []
}
groupByProperty[b.property].push(b)
})
console.log(groupByProperty)