isUndefined

fun isUndefined(obj: Any?): Boolean

The safe way to test for undefined. A direct identity test is wrong, because the engine has two representations of the value.