Basically I would want to transform this

```
[
  { key: 0, name: 'Some name' },
  { key: 0, name: 'Some name' },
  { key: 1, name: 'Some name' },
  { key: 1, name: 'Some name' },
]

```

To this where every object with the key of 0 would go into the first array and every object with the key of 1 would go into the second array.

```
[
  [
    { key: 0, name: 'Some name' },
    { key: 0, name: 'Some name' },
  ],
  [
    { key: 1, name: 'Some name' },
    { key: 1, name: 'Some name' },
  ],
];

```

Would really not mind using lodash for this but couldn't find the correct array method.