import { batch } from "https://deno.land/x/froebel@v0.23.1/mod.ts";
Takes a list
and returns it in multiple smaller lists of the size
batchSize
.
The last batch may be smaller than batchSize
depending on if list
size is
divisible by batchSize
.