UNPKG

@extra-array/swap-update

Version:
12 lines (11 loc) 284 B
declare module "@extra-array/swap-update" { /** * Exchanges two values. * @param x an array (updated) * @param i an index * @param j another index * @returns x */ declare function swap$<T>(x: T[], i: number, j: number): T[]; export = swap$; //# sourceMappingURL=swap$.d.ts.map}