add addStringArray

This commit is contained in:
Philipp Kunz 2016-09-21 13:51:37 +02:00
parent d73bfa8f00
commit 57c67a287a
2 changed files with 13 additions and 2 deletions

View File

@ -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";
```
import { Stringmap, Objectmap } from "lik";
```
For a class overview, please read the docs

View File

@ -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
*/