teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

誤字の修正

2019/12/25 05:02

投稿

toromou
toromou

スコア30

title CHANGED
File without changes
body CHANGED
@@ -6,8 +6,8 @@
6
6
 
7
7
  for (let i = 0; i < list.length; i++) {
8
8
  $target.each((index, elm) => {
9
- const thisDM = $(elm).text();
9
+ const text = $(elm).text();
10
- if (thisDM === list[i]) {
10
+ if (text === list[i]) {
11
11
  result = index;
12
12
  break;// ジャンプ先は関数の境界を越えることはできません。ts(1107)
13
13
  }
@@ -24,8 +24,8 @@
24
24
  let flag = false;
25
25
  for (let i = 0; i < list.length; i++) {
26
26
  $target.each((index, elm) => {
27
- const thisDM = $(elm).text();
27
+ const text = $(elm).text();
28
- if (thisDM === list[i]) {
28
+ if (text === list[i]) {
29
29
  result = index;
30
30
  flag = true;
31
31
  }