Search code examples
documentationjsdoc

What does the `.<T>` mean in `Array.<T>`?


My jsDocs autocompleted to this:

/**
 * @returns {Array.<T>}
 */

What does the .<T> mean in this context, and is there a set of other values it could be?


Solution

  • It means an array of T's (where T is some type or class).