From 21d6e19a2221edf515135acbc798ed57a9cad5ba Mon Sep 17 00:00:00 2001 From: Philipp Kunz Date: Sun, 12 Sep 2021 15:39:47 +0200 Subject: [PATCH] fix(core): update --- ts/lik.fastmap.ts | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/ts/lik.fastmap.ts b/ts/lik.fastmap.ts index 9065b59..96dab57 100644 --- a/ts/lik.fastmap.ts +++ b/ts/lik.fastmap.ts @@ -29,7 +29,7 @@ export class FastMap { return this.mapObject[keyArg]; } - public removeFromMap(keyArg): T { + public removeFromMap(keyArg: string): T { const removedItem = this.getByKey(keyArg); delete this.mapObject[keyArg]; return removedItem; @@ -50,7 +50,7 @@ export class FastMap { } /** - * returns a new Objectmap that includes + * returns a new Fastmap that includes all values from this and all from the fastmap in the argument */ public concat(fastMapArg: FastMap) { const concatedFastmap = new FastMap(); @@ -68,9 +68,9 @@ export class FastMap { } /** - * tries to merge another Objectmap + * tries to merge another Fastmap * Note: uniqueKeyCollisions will cause overwrite - * @param objectMapArg + * @param fastMapArg */ public addAllFromOther(fastMapArg: FastMap) { for (const key of fastMapArg.getKeys()) { @@ -79,4 +79,10 @@ export class FastMap { }); } } + + public async find(findFunction: (mapItemArg: T) => Promise) { + for (const key of this.getKeys()) { + + } + } }