[ES6] 비구조화 할당과 Spread & Rest


[ES6] 비구조화 할당과 Spread & Rest

비구조화 할당 const user = { name: 'stir', password: '1234' }; const { name, password } = user; //'stir', '1234' Spread const user = ['stir1', 'stir2']; const allUser = [...user, 'stir3']; //'stir1'..

[ES6] 비구조화 할당과 Spread & Rest에 대한 요약내용입니다.

자세한 내용은 아래에 원문링크를 확인해주시기 바랍니다.


원문링크 : [ES6] 비구조화 할당과 Spread & Rest