// [0, 1, 2, 3, 4 ,5] => [[0, 1], [2, 3], [4, 5]]
// (value: Array<any>, size: number) => Array<Array<any>>
export default function unflatten(value, size) {
  const unflattened = []

  for (let i = 0; i < value.length; i += size) {
    const slice = value.slice(i, i + size)
    unflattened.push(slice)
  }

  return unflattened
}

@@ -47,66 +47,8 @@
 5%5D%5D%0A
-// (value: Array%3Cany%3E, size: number) =%3E Array%3CArray%3Cany%3E%3E%0A
 expo

Remove comment