mirror of
https://github.com/withastro/astro.git
synced 2024-12-23 21:53:55 -05:00
Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
9 lines
207 B
JavaScript
9 lines
207 B
JavaScript
export function stripRenderFn(entryWithRender) {
|
|||
const { render, ...entry } = entryWithRender;
|
|||
return entry;
|
|||
}
|
|||
|
|||
export function stripAllRenderFn(collection = []) {
|
|||
return collection.map(stripRenderFn);
|
|||
}
|