gildor
01/16/2018, 5:07 AMinfix fun String.`in`(obj: Any): Boolean {
return obj.asDynamic().hasOwnProperty(this) == true
}
// "ontouchstart" `in` window
but I like first option moreFilipp Riabchun
01/16/2018, 10:58 AMprop in obj
and obj.hasOwnPRoperty(prop)
aren't the same things in JS