mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-18 20:12:12 +00:00
chore: add comments and format code
This commit is contained in:
@@ -20,10 +20,10 @@ class SigDecipher {
|
||||
arr.splice(0, end);
|
||||
}
|
||||
|
||||
function swap(arr, position) {
|
||||
function swap(arr, index) {
|
||||
let origArrI = arr[0];
|
||||
arr[0] = arr[position % arr.length];
|
||||
arr[position % arr.length] = origArrI;
|
||||
arr[0] = arr[index % arr.length];
|
||||
arr[index % arr.length] = origArrI;
|
||||
}
|
||||
|
||||
function reverse(arr) {
|
||||
|
||||
Reference in New Issue
Block a user