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.

25 lines
524 B

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