gaetan
07/31/2019, 4:00 PMjs("typeof window !== undefined") as Booleanthana
07/31/2019, 4:02 PMRobert Jaros
07/31/2019, 4:29 PMif (window != undefined) {
}Svyatoslav Kuzmich [JB]
07/31/2019, 5:10 PMjsTypeOf(window) == "undefined".
@Robert Jaros Accessing undefined variable will result in a ReferenceError.Robert Jaros
07/31/2019, 5:16 PMif (window.asDynamic().blah == undefined) {
}Svyatoslav Kuzmich [JB]
07/31/2019, 5:18 PMRobert Jaros
07/31/2019, 5:20 PMwindow != undefined is translated as !Kotlin.equals(window, undefined) and from I can see in the sources this function should work fine for undefined windowSvyatoslav Kuzmich [JB]
07/31/2019, 5:21 PMwindow; statement in node.js console.Robert Jaros
07/31/2019, 5:23 PMthana
08/01/2019, 7:29 AMjsTypeOf lloks great, thank you 🙂