runes3
Version:
A Javascript library for interacting with Bitcoin Runes
17 lines (13 loc) • 321 B
text/typescript
import * as types from "../types";
export class Map<T> implements types.IMap<T> {
map: { [key: string]: T } = {};
get(key: string): T {
return this.map[key];
}
keys = (): string[] => {
return Object.keys(this.map);
};
all = (): { [key: string]: T } => {
return this.map;
};
}