Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
if (configuration & LINKED_BYLINE) {
configuredArticle.bylines = fixtures.bylineWithLink;
}
if (configuration & PULL_QUOTE) {
extraContent.push(fixtures.pullQuote);
}
if (!(configuration & STANDFIRST)) {
configuredArticle.standfirst = null;
}
if (configuration & VIDEO) {
extraContent.unshift(fixtures.inlineVideo);
} else {
configuredArticle.hasVideo = false;
}
if (configuration & TEASED_CONTENT) {
configuredArticle.content = [...configuredArticle.content.slice(0, 6)];
}
configuredArticle.content = [...extraContent, ...configuredArticle.content];
configuredArticle.paywalledContent = [...configuredArticle.content];
return configuredArticle;
};