본문 바로가기

rhanziy

검색하기
rhanziy
프로필사진 rhanziy

  • 분류 전체보기 (170)
    • git (3)
    • Html_css_js (55)
    • React (25)
    • React Native (20)
    • Next.js (13)
    • Node.js (12)
    • Java (22)
    • Development setting (7)
    • study (9)
    • doodle (4)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
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
  • codepush
  • 페이지네이션
  • TS
  • map
  • 스크롤이벤트
  • generic
  • 타입스크립트
  • app.post
  • react
  • Next.js
  • 이진탐색
  • code-push-standalone
  • xlsx-js-style
  • 코드푸시
  • supabase auth
  • 슬라이딩윈도우
  • supabase authentication
  • set
  • reactnative
  • supabase 페이지네이션
  • meatadata
  • 글또10기x코드트리
  • Filter
  • Spring
  • javascript
  • array
  • interface
  • 상속
  • async
  • extends
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록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
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바