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