Skip to content

Instantly share code, notes, and snippets.

@stephencweiss
Created December 29, 2018 16:47
Show Gist options
  • Save stephencweiss/cc1d805de11eb7c267af2fdd32e665cf to your computer and use it in GitHub Desktop.
Save stephencweiss/cc1d805de11eb7c267af2fdd32e665cf to your computer and use it in GitHub Desktop.
A simple example of using function descriptions on foo(bar)
/**
* 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