name: duk_to_undefined proto: | void duk_to_undefined(duk_context *ctx, duk_idx_t index); stack: | [ ... val! ... ] -> [ ... undefined! ... ] summary: |

Replace the value at index with undefined, regardless of the previous value. Throws an error if index is invalid.

Equivalent to duk_push_undefined() followed by duk_replace() to target index.
example: | duk_to_undefined(ctx, -3); tags: - stack introduced: 1.0.0