ThingWorx Navigate is now Windchill Navigate Learn More
We are trying to merge two objects as follows,
const object1 = { name: 'Flavio' } const object2 = { age: 35 } result = {...object1, ...object2 }
We are getting syntax error with Thingworx.
How can we do with Thingworx?
Solved! Go to Solution.
You can use Object.assign.
For your specific example:
result = Object.assign({}, object1, object2)
View solution in original post