Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
extractComponentDescription: tagName => {
const customElements = getCustomElements();
if (isValidComponent(tagName) && isValidMetaData(customElements)) {
const metaData = customElements.tags.find(
tag => tag.name.toUpperCase() === tagName.toUpperCase()
);
if (metaData && metaData.description) {
return metaData.description;
}
}
return false;
},
inlineStories: true,