From 7ba6bb8bb35191298e9ca724bb1cda2c21136bbc Mon Sep 17 00:00:00 2001 From: Pieter Vander Vennet Date: Fri, 12 Apr 2024 02:03:41 +0200 Subject: [PATCH] Docs: add docs and test --- src/Logic/Tags/TagUtils.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Logic/Tags/TagUtils.ts b/src/Logic/Tags/TagUtils.ts index 8f4556e999..d92e22ff3c 100644 --- a/src/Logic/Tags/TagUtils.ts +++ b/src/Logic/Tags/TagUtils.ts @@ -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 { const properties: Record = {} for (const tag of tags) {