TIL Combining JS objects together
POSTED ON:
TAGS: javascript
const obj1 = {'a': 1, 'b': 2};
const obj2 = {'c': 3};
const obj3 = {'d': 4};
const objCombined = {...obj1, ...obj2, ...obj3};
::jazzhands::
VIA:
https://medium.com/developers-arena/some-simple-and-amazing-javascript-tricks-292e1962b1f6
Related TILs
Tagged: javascript