add addStringArray
This commit is contained in:
parent
d73bfa8f00
commit
57c67a287a
@ -9,5 +9,7 @@ We recommend the use of TypeScript for good intellisense.
|
|||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
// import any tool that you need from lik
|
// 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
|
||||||
|
@ -20,6 +20,15 @@ export class Stringmap {
|
|||||||
this.notifyTrigger()
|
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
|
* removes a string from Stringmap
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user