Skip to main content
Latest
function default
import { default } from "https://deno.land/x/graphql_deno@v15.0.0/lib/jsutils/promiseReduce.js";

Similar to Array.prototype.reduce(), however the reducing callback may return a Promise, in which case reduction will continue after each promise resolves.

If the callback does not return a Promise, then this function will also not return a Promise.

Parameters

values
callback
initialValue