Tag Archives: TypeScript

How to show first n characters in JavaScript or TypeScript string

This article will show you three different ways how to obtain substring from a string in JavaScript or TypeScript Continue reading

Posted in Language basics | Tagged , , , | Leave a comment

Refactoring function for the least amount of lines

I had the opportunity to review a small piece of code. I took code review personally and challenged myself to write the shortest solution possible. Continue reading

Posted in Refactoring | Tagged , , , , , | Leave a comment