=proto void duk_to_undefined(duk_context *ctx, int 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