Is there anything similar to a coalesce operator in the OH3 ECMA scripting? This would be very helpful handling nulls.
var myVar1 = itemRegistry.getItem('some_item').getState() ?? 0 would initialize the variable to the item state, or to zero if the item state is null.
Anything similar we can use here?