Skip to content

Instantly share code, notes, and snippets.

@ibratoev
Last active October 25, 2016 15:06
Show Gist options
  • Save ibratoev/247bebbea31acf856a8ecd3d0f5af426 to your computer and use it in GitHub Desktop.
Save ibratoev/247bebbea31acf856a8ecd3d0f5af426 to your computer and use it in GitHub Desktop.
/**
 * This is a global function
 * with description on two lines.
 * @param {number} foo - Function's first parameter called 'foo'.
 * @param bar Second parameter. Note that the dash before the description is optional. Type is optional as well.
 * @returns {boolean} Description of the return value.
 */
var globalFunc = function (foo, bar) {
  return true;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment