mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-06 06:01:31 -05:00
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com> Closes https://github.com/freeCodeCamp/freeCodeCamp/issues/46523
12 lines
373 B
JavaScript
12 lines
373 B
JavaScript
const { getAuditedSuperBlocks } = require('../config/superblock-order');
|
|
|
|
function isAuditedCert(language, superblock) {
|
|
if (!language || !superblock)
|
|
throw Error('Both arguments must be provided for auditing');
|
|
|
|
const auditedSuperBlocks = getAuditedSuperBlocks(language);
|
|
return auditedSuperBlocks.includes(superblock);
|
|
}
|
|
|
|
exports.isAuditedCert = isAuditedCert;
|