Files
freeCodeCamp/tools/challenge-parser/utils/index.js
Oliver Eyton-Williams a3a678b7af chore: remove old parser
2021-02-02 09:51:02 +05:30

7 lines
168 B
JavaScript

exports.sectionFilter = (
{ type, tagName, properties: { id = '' } },
sectionId
) => {
return type === 'element' && tagName === 'section' && id === sectionId;
};