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

4 lines
136 B
JavaScript
Raw Normal View History

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