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

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -