Singly Linked List — Typescript.

Hello there,

Today I want to show you how a Singly Linked List looks in Typescript. Of course, there are many ways of doing it. Sometimes it can vary in just a few lines of code, but others are a completely different thing that has the same functionality.

The advantage of creating a Singly Linked List is that we can create a generic data structure. With a generic data structure, we can narrow the kind of data that will be stored in the container. In other words, we have the option to parameterized types.