optional vs. undefined
Explores the difference between optional parameters and undefined types in TypeScript, with practical examples from React Query.
Explores the difference between optional parameters and undefined types in TypeScript, with practical examples from React Query.
Explains JavaScript's pass-by-value for function parameters using a closure example, showing why reassigning a variable doesn't update logged values.
Explains why boolean function parameters are often a code smell and suggests better design alternatives.
Explains why TypeScript allows non-matching function signatures, focusing on substitutability with fewer parameters and void return types.