utils.js 207 B

12345678
  1. export function stripRenderFn(entryWithRender) {
  2. const { render, ...entry } = entryWithRender;
  3. return entry;
  4. }
  5. export function stripAllRenderFn(collection = []) {
  6. return collection.map(stripRenderFn);
  7. }