You may also enjoy
Simple shortid, uuid (unique id) solution in Javascript
less than 1 minute read
When working for a company or a serious side hustle, probably this should be done via a third party library like https://www.npmjs.com/package/nanoid. Howeve...
Entry level Javascript weirdness
1 minute read
Javascript is weird when compared to other popular programming languages. If you search it on the Internet, there’re a lot of articles talking about the weir...
Three ways to define and use a Map in Typescript
less than 1 minute read
I am not sure how many ways exactly to use a Map in Typescript. Just to list three here I believe are most commonly seen.
Three ways of defining a generic function type using typescripts
less than 1 minute read
If to pass a variable which is a function, and also the type of that function need to be a generic one, it’s useful to define a generic function type when us...