No errors, well done sir!
This commit is contained in:
@@ -3,8 +3,8 @@ import type { Box } from "#/engine/Box.ts";
|
||||
export default class MapProxy<K, V> {
|
||||
map: Map<K, Box<V>>;
|
||||
|
||||
constructor() {
|
||||
this.map = new Map();
|
||||
constructor(iterable?: Iterable<readonly [K, Box<V>]>) {
|
||||
this.map = new Map(iterable);
|
||||
}
|
||||
|
||||
get(key: K): Box<V> | undefined {
|
||||
|
||||
Reference in New Issue
Block a user