Generics allow you to write flexible and reusable code that works with multiple types.
They use a placeholder type (commonly T).
TypeScript can automatically detect the type.
Constraints limit what types can be used.
Create a generic function that takes a value and returns it inside an array.
Ask the AI if you need help understanding or want to dive deeper in any topic