I'm trying to use JSDoc in my ES6 project, I'm returning a Map:
/**
* Some documentation..
*
* @returns {undefined} <- This should be replaced
*/
function returningMap() {
const someMap = new Map();
someMap.set("key", {a, b, c});
return someMap;
}
How should I document this with @returns
?
There is not good answer here.