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 |
Tags
- 리액트네이티브아이콘
- 상속
- Spring
- 안드로이드빌드에러
- 배열중복요소제거
- reactnative error
- mainapplication.kt
- async
- materialicons
- array
- 슬라이딩윈도우
- TS
- err_connection_refused
- map
- app:compiledebugkotlin
- npm에러
- Filter
- react
- extends
- generic
- reactnative
- forwardref type
- 이진탐색
- interface
- Next.js
- javascript
- 스크롤이벤트
- 타입스크립트
- app.post
- set
Archives
- Today
- Total
목록new Map() (1)
rhanziy
JS - new Map(), new Set() 사용하기
new Map() : 자료간의 연관성이나 연산을 표현하기위해 사용 // 자료이름(key)으로 글자말고도 가능. var people = new Map(); people.set([1,2,3], '123배열Kim'); people.set('age', '20'); // people.get('key'); 자료꺼내기 // people.size // 저장된 개수 // people.delete('key') 자료삭제 for(var key of people.keys()){ console.log(key); } var people2 = new Map([ [ 'name', 'Lee' ], [ 'age', '23' ] ]); 자주 쓰이진 않는다 ㅋ 콘솔 찍어보면 Map(2) {Array(3) => '123배열Kim', 'age'..
Html_css_js
2022. 12. 29. 14:52