Code coverage report for core/src/util/tags.ts

Statements: 33.33% (1 / 3)      Branches: 0% (0 / 2)      Functions: 0% (0 / 2)      Lines: 33.33% (1 / 3)      Ignored: none     

All files » core/src/util/ » tags.ts
1 2 3 4 5 6 7 8    1          
export type Tags = Record<string, string>;
 
export function tagString(tags: Tags, entrySeparator = ':', itemSeparator = ','): string {
  return Object.entries(tags)
    .map(entry => `${entry[0]}${entrySeparator}${entry[1]}`)
    .join(itemSeparator);
}