Type Inference vs. Type Assertion in TypeScript
Two important tools in the TypeScript type system are type inference and type assertion. While they sound similar, they serve different purposes and …
Two important tools in the TypeScript type system are type inference and type assertion. While they sound similar, they serve different purposes and …
Understanding the Difference Between void and never in TypeScript When working with TypeScript, we may encounter various utility types that help …
In version 4.0 TypeScript fixed a ‘bug’ in a try/catch block, where the error was of type any. The any type allowed, well, …
The currentColor keyword refers to the text color on a element where the keyword is used. And it can be used on any property that accepts a color …
JavaScript does not offer any build in way how to create enums so we have to use a workaround. On the other hand, TypeScript has its way, or two, how …
Section tag is one of HTML semantic elements, that tell browsers how they should appear and what they do. What should section contain and how should …
Data binding is a fancy name for setting relation for data passed between a parent component and a child component. Aurelia recognizes 5 types of data …
If you have a private area on your web page you probably had to solve a problem, how to stay logged in during Cypress tests. Because of performance, …
The defer attribute is used with <script> where it signals to browsers that the external script should be downloaded in parallel to parsing the …
Guard clauses (guard, guard code or guard statement) is technique to write cleaner and more readable code. Guard The definition of guard clause by …
Divitis or div soup is quite common problem of frontend developers. It is a habit or a process of using too many unnecessary div HTML elements in …
To improve responsiveness of a site, we are used to to use CSS media queries, calc() function or even Web API ResizeObserver event listener. But CSS …
The :is() pseudo-class function in CSS allows to write shorter compounded selectors. It takes list of selectors as its argument and selects any …
Centering element horizontally… Something you did many times in the past and for sure you will do many times as part of your daily job in the …
Two main bindings to handle click events exist in Aurelia - delegate and trigger. What are their key concepts and what is the difference between them? …
A lobotomized owl is a eerie name for a pretty neat CSS selector. This selector was introduced in 2014 by Heydon Pickering to solve some flow content …
To define an array of minimal length we have to create an array of defined length and then extend it with an array of unknown length. Array of certain …