javascript - Can I reference a param type in JSDoc @return? -


i document function return type depends on supplied parameter:

/** * @param {*} x thing * @return {????} thing in array */ function arrayof(x) { return [x]; } 

is possible name or otherwise reference actual type of function param, can use specify return?


Comments

Popular posts from this blog

html - How to custom Bootstrap grid height? -

javascript - pass values from mssql to views in node -

javascript - Understanding ExtJS Framework Syntax -