UNPKG

396 BTypeScriptView Raw
1export declare function hash(str: string): number;
2export declare function toString(value: any): any;
3export declare function defaultCompare<T>(a: T, b: T, key?: keyof T): boolean;
4export declare function defaultEqualCompare<T>(a: T, b: T): 0 | 1 | -1;
5export declare function random(begin: number, end: number): number;
6export declare function swap(arr: Array<any>, i: number, j: number): void;