Last week we discovered a bug in my workplace project. The error was similar to below Cannot read properties of null (reading 'map') Which is very simple to understand that somewhere in code we are calling map over a variable which is null . I was l...
This is continuation of my previous blog where I was trying to introduce some advance Typescript concepts Type Guards To better understand this lets look at below code block const numbers = [0, 1, 2, [3, 4], 5, 6, [7], [8], 9] function flatten(array...
I will start with a simple question How long will you wait for a website to load? As per google recommendation, a website page should load within 2 seconds, “Two seconds is the threshold for ecommerce website acceptability. At Google, we aim for un...
I started learning Typescript a couple of months back and initially, it was quite overwhelming for me because I used to write plain old javascript, where no strict type checking, no interfaces, no generic types. Seeing these feature/keywords in a lar...