@extra-array/move-within
Version:
Moves part of array within.
12 lines (11 loc) • 340 B
TypeScript
declare module "@extra-array/move-within" {
/**
* Moves part of array within.
* @param x an array
* @param j write index (0)
* @param i read start index (0)
* @param I read end index (X)
*/
declare function moveWithin<T>(x: T[], j?: number, i?: number, I?: number): T[];
export = moveWithin;
//# sourceMappingURL=moveWithin.d.ts.map}