@samitouri / QOS-React / commits / facd67d000

[docs] forEachAccumulated params

lokson committed Jan 24, 2017 at 03:44 UTC facd67d00061fd4438a89a9e6856582dd4894a79
1 file changed +2
src/renderers/shared/utils/forEachAccumulated.js
+2
@@ -18,6 +18,8 @@
18 * simple utility that allows us to reason about a collection of items, but
19 * handling the case when there is exactly one item (and we do not need to
20 * allocate an array).
21 + * @param {function} cb Callback invoked with each element or a collection.
22 + * @param {?*} scope Scope used as `this` in a callback.
23 */
24 function forEachAccumulated<T>(
25 arr: ?(T | Array<T>),