debian-mirror-gitlab/spec/frontend/helpers/stub_children.js

4 lines
136 B
JavaScript
Raw Normal View History

2020-03-13 15:44:24 +05:30
export default function stubChildren(Component) {
return Object.fromEntries(Object.keys(Component.components).map(c => [c, true]));
}