Mutating array of objects into array of chunked arrays containing objects with common property
<p>I have an array of objects that all contain a property <code>snail</code>. </p>

<p>I'd like to mutate this array into an array of arrays, with each element array containing objects <em>that have a common property <code>snail</code></em></p>

<p>It is very similar to lodash _.partition, except it needs to happen an indeterminate number of times, recursively, and be on a flat level and not deeply nested. </p>

<p>Thank you for any guidance.</p>

<p>Here is a sample data structure: <code>[ { hi: "bungalo" }, { hi: 'bodego' }, { hi: 'bodego' }, { hi: 'pet rock' } ]</code></p>

<p><code>[ [ { snail: 'big' }, { snail: 'big' } ], [ {snail: 'small' }, {snail: 'small'} ] ]</code></p>