Merge remote-tracking branch 'origin/master'

This commit is contained in:
Oleksii Trekhleb 2018-11-10 09:23:17 +02:00
commit 5e0e571a5c

View File

@ -23,9 +23,7 @@ export default class SelectionSort extends Sort {
// If new minimum element has been found then swap it with current i-th element.
if (minIndex !== i) {
const tmp = array[i];
array[i] = array[minIndex];
array[minIndex] = tmp;
[array[i], array[minIndex]] = [array[minIndex], array[i]];
}
}