=proto void duk_to_null(duk_context *ctx, int index); =stack [ ... val! ... ] -> [ ... null! ... ] =summary

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

Equivalent to duk_push_null() followed by duk_replace() to target index.
=example duk_to_null(ctx, -3); =tags stack