concatenate objects

PHOTO EMBED

Wed Apr 05 2023 16:06:24 GMT+0000 (Coordinated Universal Time)

Saved by @azcraze #javascript #objects #join

const defaultOptions = {
  verbose: false,
  src: "./src",
  dist: "./dist"
};
const userOptions = { verbose: true };

const options = { ...defaultOptions, ...userOptions };
content_copyCOPY

https://codetogo.io/how-to-concatenate-objects-in-javascript/