bluebird: Fix typo in 'each' comment copied from wiki

This typo has since been fixed in the original document:
https://github.com/petkaantonov/bluebird/blob/master/API.md#eachfunction-iterator---promise
This commit is contained in:
mfrantz
2015-09-16 17:08:10 -07:00
parent b1c0b5542d
commit d36fd3b062
+1 -1
View File
@@ -614,7 +614,7 @@ declare class Promise<R> implements Promise.Thenable<R>, Promise.Inspection<R> {
static filter<R>(values: R[], filterer: (item: R, index: number, arrayLength: number) => boolean, option?: Promise.ConcurrencyOption): Promise<R[]>;
/**
* Iterate over an array, or a promise of an array, which contains promises (or a mix of promises and values) with the given iterator function with the signature (item, index, value) where item is the resolved value of a respective promise in the input array. Iteration happens in serially. If any promise in the input array is rejected the returned promise is rejected as well.
* Iterate over an array, or a promise of an array, which contains promises (or a mix of promises and values) with the given iterator function with the signature (item, index, value) where item is the resolved value of a respective promise in the input array. Iteration happens serially. If any promise in the input array is rejected the returned promise is rejected as well.
*
* Resolves to the original array unmodified, this method is meant to be used for side effects. If the iterator function returns a promise or a thenable, the result for the promise is awaited for before continuing with next iteration.
*/