반응형
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
- js
- 훈훈한자바스크립트
- dataFetching
- react
- GirlsInICT해커톤
- getDerivedStateFromProps
- javascript
- BOJ
- 객체인지
- 에릭슨엘지
- filter
- map
- Girls_In_ICT
- 15721
- 이미지스캔
- Erricson
- axios
- 코드캠프
- Bestawards
- React.js
- 자바스크립트
- Unmounting
- nodejs
- ts
- props.key
- typescript
- 백준
- props
- Baekjoon
- next
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