=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.
duk_push_null()
followed by duk_replace()
to target index.