You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The one-liner R.moveIndex(data, from, to) would be data.toSpliced(from, 1).toSpliced(to, 0, data[from]), but this would also have R.moveIndex.strict, like R.swapIndices.strict, which is another reason to have this function in Remeda proper.
The text was updated successfully, but these errors were encountered:
Equivalent to
move
from Ramda; the most requested function in Lodash.The one-liner
R.moveIndex(data, from, to)
would bedata.toSpliced(from, 1).toSpliced(to, 0, data[from])
, but this would also haveR.moveIndex.strict
, likeR.swapIndices.strict
, which is another reason to have this function in Remeda proper.The text was updated successfully, but these errors were encountered: