Sadly, your best bet is: [code]const cloned = JSON.parse(JSON.stringify(target)) [/code]Although bear in mind that won't work for Date objects directly.
確定! 回上一頁