mirror of
https://github.com/janishutz/MusicPlayer.git
synced 2026-09-10 14:25:24 +02:00
fix: improve code quality
This commit is contained in:
@@ -95,10 +95,9 @@
|
|||||||
const before = array.value.slice( 0, movingIdx.value );
|
const before = array.value.slice( 0, movingIdx.value );
|
||||||
const after = array.value.slice( movingIdx.value + 1 );
|
const after = array.value.slice( movingIdx.value + 1 );
|
||||||
const el = array.value[ movingIdx.value ]!;
|
const el = array.value[ movingIdx.value ]!;
|
||||||
const arr = before.concat( after );
|
|
||||||
|
|
||||||
arr.splice( movingCurrentIdx.value, 0, el );
|
array.value = before.concat( after );
|
||||||
array.value = arr;
|
array.value.splice( movingCurrentIdx.value, 0, el );
|
||||||
movingIdx.value = -1;
|
movingIdx.value = -1;
|
||||||
movingCurrentIdx.value = -1;
|
movingCurrentIdx.value = -1;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user