UNPKG

@perawallet/connect

Version:

JavaScript SDK for integrating Pera Wallet to web applications.

15 lines (14 loc) 480 B
/** * Shuffle the given array * * @param {T[]} items Array of items to be shuffled * @returns {T[]} shuffeled array of items */ declare function shuffleArray<T>(items: T[]): T[]; /** * ConcatArrays takes n number arrays and returns a joint Uint8Array * @param arrs - An arbitrary number of n array-like number list arguments * @returns [a,b] */ declare function concatArrays(...arrs: ArrayLike<number>[]): Uint8Array; export { shuffleArray, concatArrays };