配列を一定の要素を持つ配列の配列に変換

何処かで使う可能性がありそうなのでメモ

lodashでそのもののメソッドがある

See the Pen lodash chunk by tamoriinu (@yokoyama) on CodePen.

実装 github.com