Skip to content

Commit d5c623d

Browse files
committed
Fixed typos in for...of.md
1 parent 5970561 commit d5c623d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/for...of.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ for (var _i = 0; _i < someArray.length; _i++) {
4444
You can see that using `for...of` makes *intent* clearer and also decreases the amount of code you have to write (and variable names you need to come up with).
4545

4646
#### Limitations
47-
If you are not targeting ES6 or above, the generated code assumes the property `length` exists on the object and that the object can be indexed via numbers e.g `obj[2]`. So it is only supported on `string` and `array` for these legacy JS engines.
47+
If you are not targeting ES6 or above, the generated code assumes the property `length` exists on the object and that the object can be indexed via numbers e.g. `obj[2]`. So it is only supported on `string` and `array` for these legacy JS engines.
4848

4949
If TypeScript can see that you are not using an array or a string it will give you a clear error *"is not an array type or a string type"*;
5050
```ts

0 commit comments

Comments
 (0)