@pushrocks/lik
Advanced tools
Comparing version 4.0.20 to 4.0.21
@@ -11,15 +11,16 @@ /** | ||
getByKey(keyArg: string): T; | ||
removeFromMap(keyArg: any): T; | ||
removeFromMap(keyArg: string): T; | ||
getKeys(): string[]; | ||
clean(): void; | ||
/** | ||
* returns a new Objectmap that includes | ||
* returns a new Fastmap that includes all values from this and all from the fastmap in the argument | ||
*/ | ||
concat(fastMapArg: FastMap<T>): FastMap<T>; | ||
/** | ||
* tries to merge another Objectmap | ||
* tries to merge another Fastmap | ||
* Note: uniqueKeyCollisions will cause overwrite | ||
* @param objectMapArg | ||
* @param fastMapArg | ||
*/ | ||
addAllFromOther(fastMapArg: FastMap<T>): void; | ||
find(findFunction: (mapItemArg: T) => Promise<boolean>): Promise<void>; | ||
} |
@@ -44,3 +44,3 @@ "use strict"; | ||
/** | ||
* returns a new Objectmap that includes | ||
* returns a new Fastmap that includes all values from this and all from the fastmap in the argument | ||
*/ | ||
@@ -60,5 +60,5 @@ concat(fastMapArg) { | ||
/** | ||
* tries to merge another Objectmap | ||
* tries to merge another Fastmap | ||
* Note: uniqueKeyCollisions will cause overwrite | ||
* @param objectMapArg | ||
* @param fastMapArg | ||
*/ | ||
@@ -72,4 +72,8 @@ addAllFromOther(fastMapArg) { | ||
} | ||
async find(findFunction) { | ||
for (const key of this.getKeys()) { | ||
} | ||
} | ||
} | ||
exports.FastMap = FastMap; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlrLmZhc3RtYXAuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9saWsuZmFzdG1hcC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFFQTs7R0FFRztBQUNILE1BQWEsT0FBTztJQUFwQjtRQUNVLGNBQVMsR0FBeUIsRUFBRSxDQUFDO0lBMkUvQyxDQUFDO0lBekVRLFdBQVcsQ0FBQyxNQUFjO1FBQy9CLE9BQU8sSUFBSSx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NBQ0o7SUFDSCxDQUFDO0lBRU0sS0FBSyxDQUFDLElBQUksQ0FBQyxZQUFpRDtRQUNqRSxLQUFLLE1BQU0sR0FBRyxJQUFJLElBQUksQ0FBQyxPQUFPLEVBQUUsRUFBRTtTQUVqQztJQUNILENBQUM7Q0FDRjtBQWxGRCwwQkFrRkMifQ== |
{ | ||
"name": "@pushrocks/lik", | ||
"version": "4.0.20", | ||
"version": "4.0.21", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "description": "light little helpers for node", |
@@ -32,3 +32,3 @@ import * as plugins from './lik.plugins'; | ||
public removeFromMap(keyArg): T { | ||
public removeFromMap(keyArg: string): T { | ||
const removedItem = this.getByKey(keyArg); | ||
@@ -54,3 +54,3 @@ delete this.mapObject[keyArg]; | ||
/** | ||
* returns a new Objectmap that includes | ||
* returns a new Fastmap that includes all values from this and all from the fastmap in the argument | ||
*/ | ||
@@ -73,5 +73,5 @@ public concat(fastMapArg: FastMap<T>) { | ||
/** | ||
* tries to merge another Objectmap | ||
* tries to merge another Fastmap | ||
* Note: uniqueKeyCollisions will cause overwrite | ||
* @param objectMapArg | ||
* @param fastMapArg | ||
*/ | ||
@@ -85,2 +85,8 @@ public addAllFromOther(fastMapArg: FastMap<T>) { | ||
} | ||
public async find(findFunction: (mapItemArg: T) => Promise<boolean>) { | ||
for (const key of this.getKeys()) { | ||
} | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1649128
15045