beginner36 minby DevFox

What <T> means: Array<T> and Map<K, V>

Learn to read types with angle brackets: one description with an empty slot serves every type, Array<T> fills one slot and Map<K, V> two, in order. See why an empty new Map() checks nothing, and move TaskKit’s tasks into a Map<string, Task> that catches a repeated title by itself.

  • TypeScript
  • Fundamentals
What `<T>` means: `Array<T>` and `Map<K, V>`. Read this lesson at .