Files
freeCodeCamp/client/src/utils/is-a-cert.ts
renovate[bot] 87e1ae21a5 chore: update TS and Fastify (#52157)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Sboonny <muhammedelruby@gmail.com>
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com>
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
2023-11-07 17:22:59 +05:30

22 lines
704 B
TypeScript

import { SuperBlocks } from '../../../shared/config/superblocks';
export function isNewRespCert(superBlock: string): boolean {
return superBlock === String(SuperBlocks.RespWebDesignNew);
}
export function isOldRespCert(superBlock: string): boolean {
return superBlock === String(SuperBlocks.RespWebDesign);
}
export function isNewJsCert(superBlock: string): boolean {
return superBlock === String(SuperBlocks.JsAlgoDataStructNew);
}
export function isRelationalDbCert(superBlock: string): boolean {
return superBlock === String(SuperBlocks.RelationalDb);
}
export function isCollegeAlgebraPyCert(superBlock: string): boolean {
return superBlock === String(SuperBlocks.CollegeAlgebraPy);
}