UNPKG

@cornerstonejs/dicom-image-loader

Version:

Cornerstone Image Loader for DICOM WADO-URI and WADO-RS and Local file

15 lines (14 loc) 446 B
function getSequenceItems(element) { if (!element?.Value?.length) { return []; } if (!Array.isArray(element.Value)) { if (typeof element.Value === 'object') { console.warn('Warning: Value should be an array, but an object was found. Encapsulating the object in an array.'); return [element.Value]; } return []; } return element.Value; } export default getSequenceItems;