如何正确传播嵌套对象

时间:2019-04-22 14:44:28

标签: javascript object nested vuex spread

当我进行正常的{... data}传播时,我注意到它不会(递归地)传播到内部对象

有没有标准的方法或方法,更适合在整个对象上进行传播,例如

const data = {education: {school: {name: 'nameless' }}

# as would be the code of the spread to get the object and its internal ?

0 个答案:

没有答案