forked from MapComplete/MapComplete
Docs: add docs and test
This commit is contained in:
parent
526d6bdb1c
commit
7ba6bb8bb3
1 changed files with 5 additions and 0 deletions
|
@ -213,6 +213,11 @@ export class TagUtils {
|
|||
"\n" +
|
||||
"\n"
|
||||
|
||||
/**
|
||||
* Converts a list of tags into the corresponding record
|
||||
*
|
||||
* TagUtils.KVtoProperties([new Tag("a","b"), new Tag("c","d")] // => {a: "b", c: "d"}
|
||||
*/
|
||||
static KVtoProperties(tags: Tag[]): Record<string, string> {
|
||||
const properties: Record<string, string> = {}
|
||||
for (const tag of tags) {
|
||||
|
|
Loading…
Add table
Reference in a new issue