
Typescript Type narrowing
·
개발
Typescript's type narrowing - TypeScript has a feature called "type narrowing" which allows the type system to refine the type of variable based on certain checks. For example, if you check whether a variable is not null, TypeScript understands in the subsequent code that this variable is indeed not null. Mutaillity of Obejcts - In JavaScript , obejcts are mutable. THis means that their properti..