반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- BOJ
- 훈훈한자바스크립트
- 에릭슨엘지
- typescript
- Girls_In_ICT
- javascript
- axios
- Unmounting
- dataFetching
- 코드캠프
- 객체인지
- GirlsInICT해커톤
- 백준
- 자바스크립트
- js
- 15721
- props
- ts
- Erricson
- getDerivedStateFromProps
- filter
- react
- Bestawards
- React.js
- 이미지스캔
- nodejs
- next
- props.key
- Baekjoon
- map
Archives
- Today
- Total
목록구조분해할당 (1)
민희의 코딩일지

구조 분해 할당이란? (ES6) 배열이나 객체의 속성을 해체하여 그 값을 개별 변수에 담을 수 있게 하는 Javascript 표현식이다. Clean Code를 위해서 사용한다. 1- 객체 구조 분해 할당 function buildAnimal(animalData) { let accessory = animalData.accessory, animal = animalData.animal, color = animalData.color, hairType = animalData.hairType; } let obj = { accessory: 'horn', animal: 'horse', color: 'pupple', hairType: 'curly' } function buildAnimal(animalData){ let ..
WEB FE/React
2023. 2. 3. 19:50