Takes an array of values, flattening to a single one
using the provided reducer function.
// Create a chain that flattens values constreduce = Chains.reduce(values=>Math.max(...values)); // Feed it a single input (an array), get a single output back: constresult = awaitChains.single(reduce, [ 1, 2, 3]); // 3
Takes an array of values, flattening to a single one using the provided
reducer
function.