You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Removed an unintended period ('.'), so "For example, with the code: `"value" in x`. where..." becomes "For example, with the code: `"value" in x` where..."
Copy file name to clipboardExpand all lines: packages/documentation/copy/en/handbook-v2/Narrowing.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -276,7 +276,7 @@ function multiplyValue(container: Container, factor: number) {
276
276
JavaScript has an operator for determining if an object or its prototype chain has a property with a name: the `in` operator.
277
277
TypeScript takes this into account as a way to narrow down potential types.
278
278
279
-
For example, with the code: `"value" in x`. where `"value"` is a string literal and `x` is a union type.
279
+
For example, with the code: `"value" in x` where `"value"` is a string literal and `x` is a union type.
280
280
The "true" branch narrows `x`'s types which have either an optional or required property `value`, and the "false" branch narrows to types which have an optional or missing property `value`.
0 commit comments