Flatten a two-dimensional nested array according to a callback function.
stdlib.io
stdlib-js/array-base-flatten2d-by