Buy me a coffee
TypeScript
›
オブジェクト
›
spread
←
structuredClone
spread
オブジェクト
optional chaining
→
スプレッド演算子でオブジェクトをマージします。
構文
const merged = { ...obj1, ...obj2 }