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
- mosquitto
- 공인IP
- 맥 어드레스
- mosquitto.conf
- 1883
- 데이터테이블 데이터 넣기
- datagridview 직접입력
- setInterval clear
- timepicker
- DatePicker
- pm2 상태 확인
- invalid data
- pm2 확인
- allow_anonymouse
- 서버동기화
- map이 undefined가 뜰 때
- listener 1883
- transfer
- html #select #option #multiple
- DataGridView 직접 입력
- mySQL_Replication
- c# datagridview 데이터 넣기
- Replication
- pm2
- AntDesign
- pm2 시작
- setInterval 정지
- setInterval 중지
- pm2 설치
- setInterval 외부 정지
Archives
- Today
- Total
개발 노트
js - indexOf() 본문
- 배열에서 특정 요소의 인덱스를 검색
- 만약 배열 내에 해당 요소가 존재하지 않으면 -1을 반환
const fruits = ['apple', 'banana', 'orange', 'apple', 'grape'];
const appleIndex = fruits.indexOf('apple');
console.log(appleIndex); // 출력: 0
const orangeIndex = fruits.indexOf('orange');
console.log(orangeIndex); // 출력: 2
const nonExistentIndex = fruits.indexOf('pear');
console.log(nonExistentIndex); // 출력: -1
'JavaScript' 카테고리의 다른 글
js - sort() (0) | 2023.08.10 |
---|---|
js - forEach() (0) | 2023.08.10 |
js - find() (0) | 2023.08.10 |
js - filter() (0) | 2023.08.10 |
js - map() (0) | 2023.08.10 |