https://stackoverflow.com/questions/171251/how-can-i-merge-properties-of-two-javascript-objects-dynamically
ECMAScript 2018 Standard Method
You would use object spread:
let merged = {...obj1, ...obj2};
No comments:
Post a Comment