Hi, JS has spread operator `...` , is there some...
# getting-started
x
Hi, JS has spread operator
...
, is there something like this in Kotlin?
Copy code
// JavaScript needs property names
const fullName = { first: 'Henry', last: 'O\'Conner' };

const streetAddress =
        { street: 'Dog Basket', city: 'Canine Town', zipCode: 'K9T' };

const fullAddress = { …fullName, …streetAddress, planet: 'Earth' };
the code above is from this post , however it is wrote in 2019, now we have some better solution?