Compare commits

..

2 Commits

Author SHA1 Message Date
a820e0d1b3 1.0.17 2016-09-21 13:51:47 +02:00
57c67a287a add addStringArray 2016-09-21 13:51:37 +02:00
3 changed files with 14 additions and 3 deletions

View File

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

View File

@ -1,6 +1,6 @@
{ {
"name": "lik", "name": "lik",
"version": "1.0.16", "version": "1.0.17",
"description": "light little helpers for node", "description": "light little helpers for node",
"main": "dist/index.js", "main": "dist/index.js",
"typings": "dist/index.d.ts", "typings": "dist/index.d.ts",

View File

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