Use correct optional paramater JSDoc syntax
Brandon Dail committed
Jan 25, 2017 at 09:18 UTC
2b113c527ed1f308b247e50899afd70d2afa3106
1 file changed
+1
-1
src/renderers/shared/utils/forEachAccumulated.js
+1
-1
@@ -19,7 +19,7 @@
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.
22
+ * @param {?} [scope] Scope used as `this` in a callback.
23
*/
24
function forEachAccumulated<T>(
25
arr: ?(T | Array<T>),