Good article. Built-in generics, especially DOM-related, sadly aren't very good.
Btw, you can replace the ArrayElement<T> generic with a simple T[number].
ArrayElement<T>
T[number]
Hah, now I'm using T[number] 100% of the time. Thanks for the hint!
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Good article. Built-in generics, especially DOM-related, sadly aren't very good.
Btw, you can replace the
ArrayElement<T>generic with a simpleT[number].Hah, now I'm using T[number] 100% of the time. Thanks for the hint!