mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-11-24 06:53:08 +03:00
Merge pull request #3452 from sw-double/patch-1
[javascript/en] Fix prototype example
This commit is contained in:
commit
63abe3316c
@ -510,6 +510,7 @@ for (var x in myObj){
|
||||
// Hello world!
|
||||
// 43
|
||||
// [Function: myFunc]
|
||||
// true
|
||||
|
||||
// To only consider properties attached to the object itself
|
||||
// and not its prototypes, use the `hasOwnProperty()` check.
|
||||
|
Loading…
Reference in New Issue
Block a user