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.
 
 
 
 
 
 

23 lines
449 B

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