UNPKG

ez-web-audio

Version:

Making the Web Audio API super EZ since 2024.

17 lines 530 B
/** * @public * @class utils */ /** * Given an array and an index, splits the array at index and pushes the first * chunk to the end of the second chunk. * * @private * @method arraySwap * @param {Array} arr An array to split, shift and rejoin. * @param {number} index The index where the split should occur. * @return {Array} The swapped/shifted array. */ export declare function arraySwap<T>(arr: T[], index: number): T[]; export declare function unique<T>(arr: T[]): T[]; //# sourceMappingURL=array-methods.d.ts.map