You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<emu-alg><ol><li>Let <var>O</var> be the <emu-val>this</emu-val> value.</li><li>If <var>O</var> <emu-xref href="#sec-object-type"><a href="https://tc39.es/ecma262/#sec-object-type">is not an Object</a></emu-xref>, throw a <emu-val>TypeError</emu-val> exception.</li><li>If <var>skippedElements</var> is <emu-val>undefined</emu-val>, then<ol><li>Let <var>toSkip</var> be 0.</li></ol></li><li>Else,<ol><li>If <var>skippedElements</var> is not one of <emu-val>+∞<sub>𝔽</sub></emu-val>, <emu-val>-∞<sub>𝔽</sub></emu-val>, or an <emu-xref href="#integral-number"><a href="https://tc39.es/ecma262/#integral-number">integral Number</a></emu-xref>, throw a <emu-val>TypeError</emu-val> exception.</li><li>Let <var>toSkip</var> be the <emu-xref href="#extended-mathematical-value-of"><a href="https://tc39.es/ecma262/#extended-mathematical-value-of">extended mathematical value of</a></emu-xref> <var>skippedElements</var>.</li></ol></li><li>If <var>toSkip</var> < 0, throw a <emu-val>RangeError</emu-val> exception.</li><li>Let <var>skipped</var> be 0.</li><li>Let <var>iterated</var> be ? <emu-xref aoid="GetIteratorDirect"><a href="https://tc39.es/ecma262/#sec-getiteratordirect" class="e-user-code">GetIteratorDirect</a></emu-xref>(<var>O</var>).</li><li>Repeat,<ol><li>Let <var>value</var> be ? <emu-xref aoid="IteratorStepValue"><a href="https://tc39.es/ecma262/#sec-iteratorstepvalue" class="e-user-code">IteratorStepValue</a></emu-xref>(<var>iterated</var>).</li><li>If <var>value</var> is <emu-const>done</emu-const>, return <emu-val>false</emu-val>.</li><li>If <var>skipped</var> < <var>toSkip</var>, then<ol><li>Set <var>skipped</var> to <var>skipped</var> + 1.</li></ol></li><li>Else,<ol><li>If <emu-xref aoid="SameValueZero"><a href="https://tc39.es/ecma262/#sec-samevaluezero">SameValueZero</a></emu-xref>(<var>value</var>, <var>searchElement</var>) is <emu-val>true</emu-val>, return ? <emu-xref aoid="IteratorClose"><a href="https://tc39.es/ecma262/#sec-iteratorclose" class="e-user-code">IteratorClose</a></emu-xref>(<var>iterated</var>, <emu-xref aoid="NormalCompletion"><a href="https://tc39.es/ecma262/#sec-normalcompletion">NormalCompletion</a></emu-xref>(<emu-val>true</emu-val>)).</li></ol></li></ol></li></ol></emu-alg>
0 commit comments