<table class="javascript">
<tr class="li1"><td class="ln"><pre class="de1">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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46 方法,reduce和indexOf distinctArrarr ...arr prevcurrindexarray ...prev curr prev.curr prev arr console.distinctArrarr .. .. searchElement fromIndex index fromIndex fromIndex k length . k length k k = fromIndex k searchElement index k index .. .. callback initialValue prevIoUs initialValue k length . initialValue prevIoUs k callback k k length k .k prevIoUs callbackprevIoUs k k prevIoUs