mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-06-22 21:08:12 +08:00
Co-authored-by: Oliver Eyton-Williams <[email protected]> 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;
|