We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b8be85 commit 51eb253Copy full SHA for 51eb253
JavaScript/数组去重、扁平、最值.md
@@ -41,7 +41,7 @@ const unique = arr => [...new Set(arr)];
41
if (!i || array[i] != array[pre]) {
42
result.push(array[i]);
43
}
44
- pre = array[i];
+ pre = i;
45
46
return result;
47
docs/JavaScript/数组去重、扁平、最值.md
@@ -46,7 +46,7 @@ const unique = arr => [...new Set(arr)];
48
49
50
51
52
0 commit comments