MCPcopy
hub / github.com/YMFE/yapi / arrMove

Function arrMove

client/components/EasyDragSort/EasyDragSort.js:112–117  ·  view source on GitHub ↗
(arr, fromIndex, toIndex)

Source from the content-addressed store, hash-verified

110}
111
112function arrMove(arr, fromIndex, toIndex) {
113 arr = [].concat(arr);
114 let item = arr.splice(fromIndex, 1)[0];
115 arr.splice(toIndex, 0, item);
116 return arr;
117}

Callers 1

onChangeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected