Docs: add docs and test

This commit is contained in:
Pieter Vander Vennet 2024-04-12 02:03:41 +02:00
parent 526d6bdb1c
commit 7ba6bb8bb3

View file

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