Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
export const saveBooks = async (books) => {
const chunks = chunk(chunk(books, 100), 10)
const results = []
for (const chunkOfChunks of chunks) {
const chunkResults = await Promise.all(
return results
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment