by Joni Toikkanen | Jul 11, 2024 | JavaScript, TypeScript
Destructuring is a powerful feature in TypeScript (and JavaScript) that allows you to extract values from arrays and objects into distinct variables. This syntactic sugar makes your code more concise and readable. In this post, we’ll explore the various ways you...
by Joni Toikkanen | Jun 14, 2024 | JavaScript, TypeScript
TypeScript’s static type system helps developers catch errors at compile time, leading to more robust and maintainable code. One of the features TypeScript offers to handle potential null or undefined values is the Non-Null Assertion Operator (!). In this post,...
by Joni Toikkanen | May 30, 2024 | JavaScript, TypeScript
TypeScript, a superset of JavaScript, brings static typing to the game, making it easier to catch errors early in the development process. One of the powerful features TypeScript offers is Type Assertions. In this post, we’ll explore what Type Assertions are,...
by Joni Toikkanen | May 25, 2024 | JavaScript, TypeScript
As developers, we often encounter scenarios where we need to access properties deep within an object structure. If any intermediate property is null or undefined, attempting to access further properties will throw an error. This is where Optional Chaining comes in...
by Joni Toikkanen | Jan 7, 2024 | JavaScript, TypeScript
TypeScript is a superset of JavaScript that introduces static typing to the language. In simpler terms, it’s like adding a layer on top of JavaScript that enables developers to write more structured and maintainable code. Unlike JavaScript, where types are...
by Joni Toikkanen | Jan 6, 2024 | JavaScript, TypeScript
In this post, we’re diving into a lesser-known but powerful concept in TypeScript: the double exclamation mark. This often-used symbol carries significance when it comes to type coercion and boolean transformations. Introduction to Double Exclamation Mark The...