Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function computeMeta(section) {
return obj(flat(map(selectAll('yaml', section), ({ payload }) => payload)));
}
function yaml(section) {
const yamls = selectAll('yaml', section);
section.meta = obj(flat(map(yamls, ({ payload }) => payload)));
return section;
}