const t = (e, l, n) => {
  if (n >= 0 && n < e.length) {
    const o = e.splice(l, 1)[0];
    e.splice(n, 0, o);
  } else
    console.warn(`Invalid move operation: from ${l} to ${n} in array of length ${e.length}`);
  return e;
};
export {
  t as moveElements
};
//# sourceMappingURL=utils.js.map
