UNPKG

tuna-jslinq

Version:

Linq methods for JavaScript/TypeScript for working with Arrays

5 lines 184 B
JSLinqHelper.NonEnumerable("Move", function <T>(this: T[], from: number, to: number): T[] { this.splice(to, 0, this.splice(from, 1)[0]); return this; });