Using type predicates. To define a type guard, we simply need to define a function whose return type is a type predicate:.
確定! 回上一頁