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...
by Joni Toikkanen | Nov 4, 2023 | JavaScript, TypeScript
In TypeScript, double question marks (`??`) are used as the nullish coalescing operator. The nullish coalescing operator is used to provide a default value for a variable or expression when the value on the left-hand side is `null` or `undefined`, but it does not...