
목차 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
- usecookies
- Expo
- 비동기
- proptype
- touchable
- nodejs
- 쿠키
- 무료아이콘
- 가상샐렉터
- 랜더링
- html
- switch
- Router
- homebrew
- react
- Hook
- useReducer
- visualcode
- async
- 웹접근성
- dom
- Redux
- 아이콘
- 서버
- 이쁜코드
- CSS
- 접근성
- 에러
- 클릭
- SVG
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함