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 |
Tags
- 서버동기화
- 맥 어드레스
- 1883
- map이 undefined가 뜰 때
- datagridview 직접입력
- Replication
- allow_anonymouse
- 데이터테이블 데이터 넣기
- setInterval 중지
- DataGridView 직접 입력
- AntDesign
- pm2 설치
- setInterval 외부 정지
- transfer
- invalid data
- setInterval 정지
- setInterval clear
- c# datagridview 데이터 넣기
- pm2 상태 확인
- listener 1883
- mySQL_Replication
- pm2 시작
- pm2 확인
- timepicker
- html #select #option #multiple
- mosquitto.conf
- 공인IP
- pm2
- DatePicker
- mosquitto
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 |