isUndefinedRaw

external fun isUndefinedRaw(value: Any?): Boolean(source)

Returns true if the given object is undefined. Otherwise, returns false.

const util = require('node:util');

const foo = undefined;
util.isUndefined(5);
// Returns: false
util.isUndefined(foo);
// Returns: true
util.isUndefined(null);
// Returns: false

Since

v0.11.5