Big Chungus
06/14/2020, 6:49 PMconst elm = vnode.elm = oldVnode.elm!Big Chungus
06/14/2020, 6:49 PMturansky
06/14/2020, 6:52 PMvnode.elm = oldVnode.elm! // ! in TS = !! in Kotlin
const elm = vnode.elmBig Chungus
06/14/2020, 6:53 PMBig Chungus
06/14/2020, 6:53 PMdiesieben07
06/14/2020, 6:53 PM! and !! are not quite the same. ! doesn't check anything, it just tells TS to assume its not nullBig Chungus
06/14/2020, 6:54 PM! == Any? as Any and !! == not null assertion like in kotlin?diesieben07
06/14/2020, 6:54 PM! equivalent in Kotlindiesieben07
06/14/2020, 6:54 PMAny? as Any is basically the same as !!diesieben07
06/14/2020, 6:55 PM!!turansky
06/14/2020, 6:55 PMdiesieben07
06/14/2020, 6:56 PM! will never throw an exception, even if the operand is null. !! willturansky
06/14/2020, 6:59 PMturansky
06/14/2020, 7:01 PM// in Kotlin
vnode.elm = oldVnode.elm.unsafeCast<Elm>()
val elm = vnode.elmnapperley
06/14/2020, 8:56 PMBig Chungus
06/15/2020, 7:40 AMBig Chungus
06/15/2020, 7:41 AM