Login
From:
2ality – JavaScript and more
(Uncensored)
subscribe
Array type notations: <code>T[]</code> vs. <code>Array<T></code> in TypeScript
https://2ality.com/2025/02/array-type-notation.html
links
backlinks
Roast topics
Find topics
Find it!
In this blog post, we explore two equivalent notations for Arrays in TypeScript: T[] and Array<T>. I prefer the latter and will explain why.