In TypeScript, it’s often useful to define interfaces or complex (structured) types whose properties (or keys) may only be values of a previously defined enum
Continue readingCategory: Techniques and algorithms
Universal getter for plain JS objects.
Many times in JavaScript we have to reach deep into objects to access fields that could possibly not be there at all; for example let’s
Continue readingQuickly filtering large lists of texts.
Recently, I had to make a mock-up of a filtering function (something I need for a project I work on) so I can show-case it
Continue readingJS classes for the masses.
Following on an older post of mine, I decided to write a new article about an(other) implementation of OOP Classes in JavaScript. This is something
Continue readingA simple(r) approach for class-based OOP in JavaScript.
Like others before me, I found JavaScript’s prototype-based OOP support – while very powerful – quite cumbersome in some situations where I needed a certain
Continue reading