Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf42433e

Browse files
committed
Fix ESLint issues.
1 parent2ffb7b7 commitf42433e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎src/algorithms/sorting/insertion-sort/InsertionSort.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ export default class InsertionSort extends Sort {
2121
this.callbacks.visitingCallback(array[currentIndex-1]);
2222

2323
// Swap the elements.
24-
[array[currentIndex-1],array[currentIndex]]=[array[currentIndex],array[currentIndex-1]];
24+
[
25+
array[currentIndex-1],
26+
array[currentIndex],
27+
]=[
28+
array[currentIndex],
29+
array[currentIndex-1],
30+
];
2531

2632
// Shift current index left.
2733
currentIndex-=1;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp