qsu
Version:
qsu is a utility library that contains useful and frequently used functions. Start with your preferred language and the modern development environment.
1 lines • 141 B
JavaScript
export function arrMove(r,e,n){const o=r.length;if(o<=e||o<=n)throw new Error("Invalid move params");return r.splice(n,0,r.splice(e,1)[0]),r}