Created
December 29, 2018 16:47
-
-
Save stephencweiss/cc1d805de11eb7c267af2fdd32e665cf to your computer and use it in GitHub Desktop.
A simple example of using function descriptions on foo(bar)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Foo takes any argument. | |
* The return value is 'baz' in all cases. | |
* @param {*} bar - Any argument | |
* @param {string} [optionalArg] - An optional argument that is a string | |
*/ | |
function foo(bar, optionalArg) { | |
return 'baz'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment