return fromIndex == -1 ? arr : arr.splice(toIndex, 0, arr.splice(fromIndex, 1)[0]);