Skip to content

Commit 0c4d442

Browse files
Update concepts/type-checking/about.md
Co-authored-by: Derk-Jan Karrenbeld <derk-jan+github@karrenbeld.info>
1 parent c44db51 commit 0c4d442

1 file changed

Lines changed: 1 addition & 1 deletion

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 `iframe`, 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 ream, 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

0 commit comments

Comments
 (0)