How to document Array return value (and parameters) in JSDoc when array elements can be either of the following:
Array
String
As per doco @returns
/** * @returns {Array} Lines from the file. */ function readLines(filepath) { }
Also see.