Generate docs from javascript source via AST parsing
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
/*
|
|
|
* This function is super cool and does all sorts of cool stuffs
|
|
|
*/
|
|
|
function some(cool, stuff){
|
|
|
if(typeof cool === undefined || typeof stuff === undefined){
|
|
|
throw new Exception('must provide "cool" or "stuff" parameter');
|
|
|
}
|
|
|
|
|
|
if(cool > stuff){
|
|
|
return stuff;
|
|
|
} else if(stuff > cool){
|
|
|
return cool;
|
|
|
} else {
|
|
|
return null;
|
|
|
};
|
|
|
}
|