Skip to content

Commit c44db51

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

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
@@ -72,7 +72,7 @@ java instanceof Beverage;
7272
```exercism/advanced
7373
The `Array` class has a method called `Array.isArray()` that checks if its argument is an array.
7474
75-
While `instanceof Array` will not work with an array created in a different `iframe` in a webpage, `Array.isArray()` will.
75+
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
7777
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.
7878
`Array.isArray()` is capable of ignoring this, and should always be used when possible.

0 commit comments

Comments
 (0)