Merge pull request #3452 from sw-double/patch-1

[javascript/en] Fix prototype example
This commit is contained in:
Andre Polykanine 2019-02-01 01:43:59 +02:00 committed by GitHub
commit 63abe3316c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.