Repair silly mistake

This commit is contained in:
Tony Garnock-Jones 2021-01-12 14:17:31 +01:00
parent 329cee7bd6
commit b4d5334a1a
1 changed files with 2 additions and 2 deletions

View File

@ -181,14 +181,14 @@ export class FlexSet<V> implements Set<V> {
get(v: V): {item: V} | null {
const vs = this._key(v);
if (this.items.has(vs)) {
return {item: this.items[vs]};
return {item: this.items.get(vs)};
} else {
return null;
}
}
add(v: V): this {
this.items[this._key(v)] = v;
this.items.set(this._key(v), v);
return this;
}