... object) // before ES9 let objectClone = {...object} // ES9 syntax let otherObject = {c: 3, ...object} console.log(otherObject) // -> {c: 3, a: 1, b: 2} ...
確定! 回上一頁