From 366249f84fa5371182d29be6fb70e693f2c41972 Mon Sep 17 00:00:00 2001 From: David Braun Date: Tue, 28 Nov 2017 11:15:13 -0500 Subject: [PATCH] API.md: Add `async` to reduce's return value. --- doc/API.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/API.md b/doc/API.md index e38c440..6f242d4 100644 --- a/doc/API.md +++ b/doc/API.md @@ -22,7 +22,7 @@ - [length](#length) - [map(callbackfn[, thisArg]) -> Channel](#mapcallbackfn-thisarg---channel) - [push(value) -> async bufferLength](#pushvalue---async-bufferlength) - - [reduce(callbackfn[, initialValue])](#reducecallbackfn-initialvalue) + - [reduce(callbackfn[, initialValue]) -> async](#reducecallbackfn-initialvalue---async) - [shift() -> async](#shift---async) - [slice(start[, end]) -> Channel](#slicestart-end---channel) - [some(callbackfn[, thisArg])](#somecallbackfn-thisarg) @@ -294,7 +294,7 @@ promise. Unlike `Array`'s method, accept only one `value` at a time. -### reduce(callbackfn[, initialValue]) +### reduce(callbackfn[, initialValue]) -> async `callbackfn` should be a function that takes two arguments (unlike `Array`'s version which takes four). `reduce` calls the callback, as a function, once for