const test = null; const { a, b, c, d } = { ...test } console.log(a, b, c, d) //undefined undefined undefined undefined

이렇게 하면됨 ㅅㅂㅋㅋ 왜 되는건지 누가 설명좀