Least recently used cache in typescript

There are so many way to implementation approaches for implementing least recently used cache in so many languages.

If you have came across such question and looking for an answer in typescript then see below reference:

Reference