mirror of
https://github.com/facebook/react.git
synced 2026-11-18 20:15:56 +00:00
Use correct optional paramater JSDoc syntax
This commit is contained in:
1 parent
facd67d000
commit
2b113c527e
1 file changed
+1
-1
@@ -19,7 +19,7 @@
|
||||
* handling the case when there is exactly one item (and we do not need to
|
||||
* allocate an array).
|
||||
* @param {function} cb Callback invoked with each element or a collection.
|
||||
* @param {?*} scope Scope used as `this` in a callback.
|
||||
* @param {?} [scope] Scope used as `this` in a callback.
|
||||
*/
|
||||
function forEachAccumulated<T>(
|
||||
arr: ?(T | Array<T>),
|
||||
|
||||
Reference in new issue
Block a user