npm i batch-opUse batch() or batchAsync() by default. They return an array of all of the outputs from the operation parameter.
If the output of the operation parameter callback is an array (such as one that maps all of the elements), use batchFlat() or batchFlatAsync() instead. This will output a single flattened array of elements.