File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -26,13 +26,13 @@ nearly as useless as the [typeof operator](#types.typeof).
26
26
'foo' instanceof String; // false
27
27
'foo' instanceof Object; // false
28
28
29
- One important thing to note here is, that ` instanceof ` does not work on objects
30
- that origin from different JavaScript contexts (e.g. different documents
29
+ One important thing to note here is that ` instanceof ` does not work on objects
30
+ that originate from different JavaScript contexts (e.g. different documents
31
31
in a web browser), since their constructors will not be the exact same object.
32
32
33
33
### In Conclusion
34
34
35
35
The ` instanceof ` operator should ** only** be used when dealing with custom made
36
- objects that origin from the same JavaScript context. Just like the
36
+ objects that originate from the same JavaScript context. Just like the
37
37
[ ` typeof ` ] ( #types.typeof ) operator, every other use of it should be ** avoided** .
38
38
You can’t perform that action at this time.
0 commit comments