You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
433 B

=proto
void duk_to_undefined(duk_context *ctx, int index);
=stack
[ ... val! ... ] -> [ ... undefined! ... ]
=summary
<p>Replace the value at <tt>index</tt> with <tt>undefined</tt>, regardless
of the previous value. Throws an error if index is invalid.</p>
<div class="note">
Equivalent to <tt>duk_push_undefined()</tt> followed by <tt>duk_replace()</tt>
to target index.
</div>
=example
duk_to_undefined(ctx, -3);
=tags
stack