use javascript to convert ["pages/logs/main"," ^ pages/index/main", "pages/counter/main"] to
[
"pages/index/main",
"pages/counter/main",
"pages/logs/main"
]
description: raise the item ^ pages/index/main to the front of the array and remove ^
var pages =["pages/logs/main", "^pages/index/main", "pages/counter/main"]
var startPageIndex = pages.findIndex(v => { return v[0] === "^"})
var startPage = pages[headIndex].slice(1)
pages.splice(startPageIndex, 1)
pages.unshift(startPage)
console.log(pages)
is there a more streamlined operation than this, gods?