mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-01 17:03:30 -05:00
12 lines
377 B
JavaScript
12 lines
377 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;
|