I wonder what is the idiom which used in lodash for reshaping arrays?
Basically, I'm looking for something that transforms this array : [1, 2, 3, 4, 5, 6, ,7, 8] to this one (in this case we've grouped each 3, but let's assume we are grouping each N) [[1, 2, 3], [4, 5, 6], [7, 8]]
I no pretty well how this should be done in pure js, but all my attempts to rewrite it in lodash are well, less readable after all.