Skip to content

Commit

Permalink
Normative: Add Object.hasOwn (tc39#2415)
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiebuilds authored and ljharb committed Sep 8, 2021
1 parent 56ed133 commit 077317b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -28865,6 +28865,16 @@ <h1>Object.getPrototypeOf ( _O_ )</h1>
</emu-alg>
</emu-clause>

<emu-clause id="sec-object.hasown">
<h1>Object.hasOwn ( _O_, _P_ )</h1>
<p>When the `hasOwn` method is called, the following steps are taken:</p>
<emu-alg>
1. Let _obj_ be ? ToObject(_O_).
1. Let _key_ be ? ToPropertyKey(_P_).
1. Return ? HasOwnProperty(_obj_, _key_).
</emu-alg>
</emu-clause>

<emu-clause id="sec-object.is">
<h1>Object.is ( _value1_, _value2_ )</h1>
<p>When the `is` function is called with arguments _value1_ and _value2_, the following steps are taken:</p>
Expand Down

0 comments on commit 077317b

Please sign in to comment.