@amaui/hash-table
Version:
13 lines (12 loc) • 429 B
TypeScript
export type TAmauiHashTableValue = any;
export default class AmauiHashTable {
value: Array<[string?, TAmauiHashTableValue?]>;
length: number;
limit: number;
constructor(limit?: number);
hash(property: string): number;
get(property: string): TAmauiHashTableValue;
set(property: string, value: TAmauiHashTableValue): AmauiHashTable;
remove(property: string): boolean;
clear(): AmauiHashTable;
}