=proto duk_bool_t duk_is_null_or_undefined(duk_context *ctx, duk_idx_t index); =stack [ ... val! ... ] =summary
Returns 1 if value at index
is either null
or undefined
,
otherwise returns 0. If index
is invalid, also returns 0.
This API call is similar to a (x == null)
comparison in Ecmascript, which
is true for both null
and undefined
.