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
- 데이터테이블 데이터 넣기
- 1883
- tailwind
- setInterval 정지
- allow_anonymouse
- map이 undefined가 뜰 때
- mosquitto
- setInterval 중지
- pm2 상태 확인
- DatePicker
- DataGridView 직접 입력
- setInterval clear
- timepicker
- mySQL_Replication
- setInterval 외부 정지
- html #select #option #multiple
- 서버동기화
- listener 1883
- pm2
- vite
- datagridview 직접입력
- react
- pm2 시작
- AntDesign
- invalid data
- c# datagridview 데이터 넣기
- pm2 확인
- pm2 설치
- 맥 어드레스
- mosquitto.conf
Archives
- Today
- Total
개발 노트
js - map() 본문
- array 자료 갯수만큼 함수안의 코드 실행해줌
- 함수의 파라미터는 array안에 있던 자료
- return에 반환값 적으면 array로 담아줌
let arr = [10, 20 ,30]
let a = arr.map(function (item, i) {
return item
})
console.log(a) // [10, 20, 30]
item은 배열에 각 요소 (여기서는 10, 20, 30)
i는 인덱스로 0부터 시작 (여기서는 0, 1, 2)
'JavaScript' 카테고리의 다른 글
js - find() (0) | 2023.08.10 |
---|---|
js - filter() (0) | 2023.08.10 |
js(ES11) - Nullish coalescing (??) (0) | 2023.08.10 |
js(ES11) - Optional chaining (?.) (0) | 2023.08.10 |
js(ES6) - Default parameters (0) | 2023.08.10 |