JavaScript has the `in` operator to detect if an o...
# javascript
b
JavaScript has the
in
operator to detect if an object has a function. For instance,
'ontouchstart' in window
will return
true
for touchscreen devices. Is there a parallel for this in Kotlin/JS? https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/in