
목차 spread spread는 es6부터 추가된 배열이나 오브젝트를 말그대로 나열해주는 도구이다. const array = ["b ", "c ", "d "]; 예로들어 b, c, d를 가진 배열 array이 있다고 하자. array 값들을 가진 array2를 하나 더 만들려고 할때, 나열을 모른다면 이렇게 해야 할 것이다. const array2 = ["a ", array[0], array[1], array[2], "e "]; 하지만 spread를 안다면 이렇게 표현 가능하다. const array2 = ["a ",...array, "e "]; 코드 export default function App () { const array = ["b ", "c ", "d "]; const array2 = ["a ..
웹개발(프론트)
2021. 4. 6. 20:03
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 아이콘
- nodejs
- html
- 에러
- visualcode
- homebrew
- async
- 이쁜코드
- 접근성
- Hook
- 서버
- Expo
- CSS
- Router
- usecookies
- touchable
- 랜더링
- 쿠키
- useReducer
- 웹접근성
- proptype
- switch
- 가상샐렉터
- Redux
- dom
- SVG
- 비동기
- react
- 무료아이콘
- 클릭
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함