i'm doing a project in VueJS and i have an array of data, which consists of a number of objects.

These objects are pulled from a PHP Backend and consist of values like

id: 2123
name: "Name Value"
status: "active"
account\_id: "2KGGALS2353255"

Imagine i want to split these by the keys names into a similar array but i want to have a parent object that consists of two child objects

```
[
    0: {
     core: {
       id: 2123
       name: "Name Value"
     },
     extra: {
       status: "active",
       account_id: "2KGGALS2353255" 
     }
]

```

The question is how can i achieve this with Javascript? I don't really want to modify the data in PHP beforehand unless this is something very unadvised to do in Javascript.
I can use VueJS and Lodash.