jeudi 7 mars 2019

How to read function description in code?

I have this code

/** This is test function
 * @param  {} param1 this is param 1
 * @param  {} param2 this is param 2
 */
function test(param1, param2) {

}

And I am looking for a way to get this js doc description in code. For instance

function getMethodJsDocData(){
  magic happens here and return some data contains
 /** This is test function
 * @param  {} param1 this is param 1
 * @param  {} param2 this is param 2
 */
}





Aucun commentaire:

Enregistrer un commentaire