質問編集履歴

1

edit code

2018/05/26 10:55

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -34,43 +34,43 @@
34
34
 
35
35
 
36
36
 
37
- let addedArray1 = updatedArray1.filter(x => !initialArray.includes(x));
37
+ let addedElements1 = updatedArray1.filter(x => !initialArray.includes(x));
38
38
 
39
- let addedArray2 = updatedArray2.filter(x => !initialArray.includes(x));
39
+ let addedElements2 = updatedArray2.filter(x => !initialArray.includes(x));
40
40
 
41
- let addedArray3 = updatedArray3.filter(x => !initialArray.includes(x));
41
+ let addedElements3 = updatedArray3.filter(x => !initialArray.includes(x));
42
42
 
43
- let addedArray4 = updatedArray4.filter(x => !initialArray.includes(x));
43
+ let addedElements4 = updatedArray4.filter(x => !initialArray.includes(x));
44
44
 
45
- console.log("----- added arrays -----");
45
+ console.log("----- added elements -----");
46
46
 
47
- console.log(addedArray1);
47
+ console.log(addedElements1);
48
48
 
49
- console.log(addedArray2);
49
+ console.log(addedElements2);
50
50
 
51
- console.log(addedArray3);
51
+ console.log(addedElements3);
52
52
 
53
- console.log(addedArray4);
53
+ console.log(addedElements4);
54
54
 
55
55
 
56
56
 
57
- let removedArray1 = initialArray.filter(x => !updatedArray1.includes(x));
57
+ let removedElements1 = initialArray.filter(x => !updatedArray1.includes(x));
58
58
 
59
- let removedArray2 = initialArray.filter(x => !updatedArray2.includes(x));
59
+ let removedElements2 = initialArray.filter(x => !updatedArray2.includes(x));
60
60
 
61
- let removedArray3 = initialArray.filter(x => !updatedArray3.includes(x));
61
+ let removedElements3 = initialArray.filter(x => !updatedArray3.includes(x));
62
62
 
63
- let removedArray4 = initialArray.filter(x => !updatedArray4.includes(x));
63
+ let removedElements4 = initialArray.filter(x => !updatedArray4.includes(x));
64
64
 
65
- console.log("----- removed arrays -----");
65
+ console.log("----- removed elements -----");
66
66
 
67
- console.log(removedArray1);
67
+ console.log(removedElements1);
68
68
 
69
- console.log(removedArray2);
69
+ console.log(removedElements2);
70
70
 
71
- console.log(removedArray3);
71
+ console.log(removedElements3);
72
72
 
73
- console.log(removedArray4);
73
+ console.log(removedElements4);
74
74
 
75
75
  ```
76
76
 
@@ -78,7 +78,7 @@
78
78
 
79
79
  ```
80
80
 
81
- ----- added arrays -----
81
+ ----- added elements -----
82
82
 
83
83
  []
84
84
 
@@ -88,7 +88,7 @@
88
88
 
89
89
  []
90
90
 
91
- ----- removed arrays -----
91
+ ----- removed elements -----
92
92
 
93
93
  ["b"]
94
94