@onekeyfe/blockchain-libs
Version:
OneKey Blockchain Libs
21 lines (20 loc) • 774 B
TypeScript
/**
* ArrayEqual takes two arrays and return true if equal, false otherwise
*/
export declare function arrayEqual(a: ArrayLike<any>, b: ArrayLike<any>): boolean;
/**
* 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]
*/
export declare function concatArrays(...arrs: ArrayLike<number>[]): Uint8Array;
/**
* Remove undefined properties from an object
* @param obj - An object, preferably one with some undefined properties
* @returns A copy of the object with undefined properties removed
*/
export declare function removeUndefinedProperties(obj: Record<string | number | symbol, any>): {
[x: string]: any;
[x: number]: any;
[x: symbol]: any;
};