diff options
author | Andre Polykanine <ap@oire.me> | 2019-02-01 01:43:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-01 01:43:59 +0200 |
commit | 63abe3316cc22d64c6612d3c092e57058d61158d (patch) | |
tree | e6d0a784a76e90c3cd9526991f6c473a2756e03e | |
parent | a1d30f2717d978fe165a673580631bb943460f95 (diff) | |
parent | 25703676055e3db817e95ca184a04e0f9761ac24 (diff) |
Merge pull request #3452 from sw-double/patch-1
[javascript/en] Fix prototype example
-rw-r--r-- | javascript.html.markdown | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/javascript.html.markdown b/javascript.html.markdown index ecaf02c5..c466c09b 100644 --- a/javascript.html.markdown +++ b/javascript.html.markdown @@ -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. |