Skip to content

Commit 0907d03

Browse files
authored
Fix small typo in introduction.md & about.md (#2858)
[no important files changed]
1 parent 37e7927 commit 0907d03

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

concepts/type-checking/about.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ The `Array` class has a method called `Array.isArray()` that checks if its argum
7474
7575
While `instanceof Array` will not work with an array created in a different realm such as an `iframe` in a webpage, `Array.isArray()` will.
7676
77-
This is because the Array class has a different constructor in each realm, and each `iframe` has its own ream, meaning that the function in the prototype chain will be different, causing `instanceof Array` to fail.
77+
This is because the Array class has a different constructor in each realm, and each `iframe` has its own realm, meaning that the function in the prototype chain will be different, causing `instanceof Array` to fail.
7878
`Array.isArray()` is capable of ignoring this, and should always be used when possible.
7979
8080
It can also survive false positives where an object isn't actually an `Array`, and merely has `Array` in its prototype chain.

concepts/type-checking/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ The `Array` class has a method called `Array.isArray()` that checks if its argum
7474
7575
While `instanceof Array` will not work with an array created in a different realm such as an `iframe` in a webpage, `Array.isArray()` will.
7676
77-
This is because the Array class has a different constructor in each realm, and each `iframe` has its own ream, meaning that the function in the prototype chain will be different, causing `instanceof Array` to fail.
77+
This is because the Array class has a different constructor in each realm, and each `iframe` has its own realm, meaning that the function in the prototype chain will be different, causing `instanceof Array` to fail.
7878
`Array.isArray()` is capable of ignoring this, and should always be used when possible.
7979
8080
It can also survive false positives where an object isn't actually an `Array`, and merely has `Array` in its prototype chain.

exercises/concept/recycling-robot/.docs/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ The `Array` class has a method called `Array.isArray()` that checks if its argum
7474
7575
While `instanceof Array` will not work with an array created in a different realm such as an `iframe` in a webpage, `Array.isArray()` will.
7676
77-
This is because the Array class has a different constructor in each realm, and each `iframe` has its own ream, meaning that the function in the prototype chain will be different, causing `instanceof Array` to fail.
77+
This is because the Array class has a different constructor in each realm, and each `iframe` has its own realm, meaning that the function in the prototype chain will be different, causing `instanceof Array` to fail.
7878
`Array.isArray()` is capable of ignoring this, and should always be used when possible.
7979
8080
It can also survive false positives where an object isn't actually an `Array`, and merely has `Array` in its prototype chain.

0 commit comments

Comments
 (0)