(a=>Object.fromEntries([...new Set(a.map(a=>a.name))].map(b=>[b,a.filter(a=>a.name===b).map(a=>a.value)])))([
{name: 'SomeName', value: 0},
{name: 'SomeName', value: 3},
{name: 'SomeName', value: 1},
{name: 'SecondName', value: true},
{name: 'ThirdName', value: '2022-09-01T00:00:00.000+03:00'}
])
(a=>JSON.parse('{'+JSON.stringify(a).match(/"[^"]+":"[^"]+"/g).join(',')+'}'))({
"mass1": [
{
"name1": "value1",
"name2": "value2"
},
{
"name3": "value3",
"name4": "value4"
},
{
"name5": "value5",
"name6": "value6"
}
],
"mass2": [
{
"name7": "value7",
"name8": "value8"
},
{
"name9": "value9",
"name10": "value10"
},
{
"name11": "value11",
"name12": "value12"
}
],
"mass3": [
{
"name13": "value13",
"name14": "value14"
},
{
"name15": "value15",
"name16": "value16"
},
{
"name17": "value17",
"name18": "value18"
}
]
})
setTimeoutrequestAnimationFrame
eventHandler