astro/packages/integrations/markdoc/test/fixtures/content-collections/utils.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
207 B
JavaScript
Raw Normal View History

2023-02-09 18:25:18 +00:00
export function stripRenderFn(entryWithRender) {
const { render, ...entry } = entryWithRender;
return entry;
}
export function stripAllRenderFn(collection = []) {
return collection.map(stripRenderFn);
}