diff --git a/README.md b/README.md index c8e1027..e2275f2 100644 --- a/README.md +++ b/README.md @@ -9,5 +9,7 @@ We recommend the use of TypeScript for good intellisense. ```typescript // import any tool that you need from lik -import {Stringmap} from "lik"; -``` \ No newline at end of file +import { Stringmap, Objectmap } from "lik"; +``` + +For a class overview, please read the docs diff --git a/ts/lik.stringmap.ts b/ts/lik.stringmap.ts index f205286..855661b 100644 --- a/ts/lik.stringmap.ts +++ b/ts/lik.stringmap.ts @@ -20,6 +20,15 @@ export class Stringmap { this.notifyTrigger() } + /** + * like addString, but accepts an array of strings + */ + addStringArray(stringArrayArg: string[]) { + for (let stringItem of stringArrayArg){ + this.addString(stringItem) + } + } + /** * removes a string from Stringmap */