All files / dicomImageLoader/src/imageLoader/wadors getTagValue.ts

80% Statements 4/5
88.88% Branches 8/9
100% Functions 1/1
80% Lines 4/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12  103086x 2404x 2404x           100682x    
export default function getTagValue(tag, justElement = true) {
  if (tag && tag.Value) {
    Eif (tag.Value[0] && justElement) {
      return tag.Value[0];
    }
 
    return tag.Value;
  }
 
  return tag;
}