docs/js/routes.js
function isSubComponent(resource) {
  const [dir, module] = resource.split('/').filter(n => n !== '.');
  return dir !== module;
}
function isSubComponent(resource) {
  const [dir, module] = resource.split('/').filter(n => n !== '.');
  return dir !== module;
}
function isSubComponent ( resource ) { const [ dir , module ] = resource . split ( '/' ) . filter ( n => n !== '.' ) ; return dir !== module ; }
Don't render an example panel if the component is not the top-level component.
Don t render an example panel if the component is not the top - level component .