(child)
| 85 | async function getTocItems(node, context, opts) { |
| 86 | // Cleaner than trying to be too terse inside the `.filter()` inline callback. |
| 87 | function filterHidden(child) { |
| 88 | return opts.includeHidden || !child.page.hidden |
| 89 | } |
| 90 | |
| 91 | return await Promise.all( |
| 92 | node.childPages.filter(filterHidden).map(async (child) => { |
nothing calls this directly
no outgoing calls
no test coverage detected