Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
...configuredArticle.content.slice(0, 2),
fixtures.keyFacts,
...configuredArticle.content.slice(2)
];
}
if (!(configuration & LABEL)) {
configuredArticle.label = null;
}
if (!(configuration & LEAD_ASSET)) {
configuredArticle.leadAsset = null;
}
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;
}