Receives multilevel nested array as an input and flattens it into one dimensional.
Flattens a nested array recursively for Node.js and browsers.
The flatten method creates a new array with all sub-array elements concatenated into it.
Flatten an array or array-like list (non-recursive implementation).
Simple utility function to make chunks of array by given size