Kotlin is a fundamentally different language than javascript. However, if you expose those data types as maps. then you can just use the plus operator on both maps and get a combined map. Of course if you have specific types rather than generic maps you can make your own combinators, but you’ll have to write that yourself. There is no way that that would happen automatically.