Skip to content

Commit 83769e2

Browse files
authored
Fix grammar
1 parent ddb88f9 commit 83769e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/types/index-signatures.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ console.log(foo['Hello']); // World
4242
```
4343
Note that `toString` will get called whenever the `obj` is used in an index position.
4444

45-
Arrays are slightly different. For `number` indexing JavaScript VMs will try to optimise (depending on things like is it actually and array and do the structures of items stored match etc.). So `number` should be considered as a valid object accessor in its own right (distinct from `string`). Here is a simple array example:
45+
Arrays are slightly different. For `number` indexing JavaScript VMs will try to optimise (depending on things like is it actually an array and do the structures of items stored match etc.). So `number` should be considered as a valid object accessor in its own right (distinct from `string`). Here is a simple array example:
4646

4747
```ts
4848
let foo = ['World'];

0 commit comments

Comments
 (0)