How to document Array
return value (and parameters) in JSDoc when array elements can be either of the following:
String
,
Although you may find that the guidance given in some of the other answers works for you, I prefer this syntax:
/**
* @return {Array} ...
*/
And in comparison to the guidance others have offered, I think this is closer to your expectation based on the example you give in your question.
Here's great source for information on JSDoc: https://wiki.servoy.com/display/public/DOCS/JSDoc+Annotations