回答編集履歴
2
説明を修正
test
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
.grep(), .map(), .inArray() で。
|
2
2
|
|
3
|
-
JavaScript の .filter(), .map(), .includes() に相当します。
|
3
|
+
JavaScript の .filter(), .map(), ~~.includes()~~ .indexOf() に相当します。
|
4
4
|
|
5
5
|
```jQuery
|
6
6
|
|
1
コード修正
test
CHANGED
@@ -10,7 +10,7 @@
|
|
10
10
|
|
11
11
|
var text = $(this).text();
|
12
12
|
|
13
|
-
if ($.inArray(text, data)) {
|
13
|
+
if ($.inArray(text, data) >= 0) {
|
14
14
|
|
15
15
|
$(this).hide();
|
16
16
|
|