mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-04 23:24:21 +00:00
refactor(monorepo): decouple api and webui into workspaces packages
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
export function arrayMove<T>(array: T[], from: number, to: number): T[] {
|
||||
const newArray = array.slice()
|
||||
newArray.splice(to, 0, newArray.splice(from, 1)[0])
|
||||
return newArray
|
||||
}
|
||||
Reference in New Issue
Block a user