astro/packages/integrations/markdoc/test/fixtures/content-collections/utils.js
2023-02-14 09:28:09 -05:00

8 lines
207 B
JavaScript

export function stripRenderFn(entryWithRender) {
const { render, ...entry } = entryWithRender;
return entry;
}
export function stripAllRenderFn(collection = []) {
return collection.map(stripRenderFn);
}