Skip to content

Instantly share code, notes, and snippets.

@aslushnikov
Created June 18, 2014 12:06
Show Gist options
  • Save aslushnikov/6007e7d4b9df234c637d to your computer and use it in GitHub Desktop.
Save aslushnikov/6007e7d4b9df234c637d to your computer and use it in GitHub Desktop.
/**
* @param {TYPE} a
* @param {TYPE} b
* @template TYPE
* @return {TYPE}
*/
function max(a, b)
{
/**
* @param {TYPE} a
* @param {TYPE} b
* @return {TYPE}
*/
function minus(a, b)
{
return a - b;
}
return minus(a, b) < 0 ? b : a;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment