packages/basic-component-mixins/src/ContentItemsMixin.js
function filterAuxiliaryElements(items) {
  const auxiliaryTags = [
    'link',
    'script',
    'style',
    'template'
  ];
  return [].filter.call(items, function(item) {
    return !item.localName || auxiliaryTags.indexOf(item.localName) < 0;
  });
}
function filterAuxiliaryElements(items) {
  const auxiliaryTags = [
    'link',
    'script',
    'style',
    'template'
  ];
  return [].filter.call(items, function(item) {
    return !item.localName || auxiliaryTags.indexOf(item.localName) < 0;
  });
}
function filterAuxiliaryElements ( items ) { const auxiliaryTags = [ 'link' , 'script' , 'style' , 'template' ] ; return [ ] . filter . call ( items , function ( item ) { return ! item . localName || auxiliaryTags . indexOf ( item . localName ) < 0 ; } ) ; }
Return the given elements, filtering out auxiliary elements that aren't typically visible. Items which are not elements are returned as is.
Return the given elements filtering out auxiliary elements that aren t typically visible . Items which are not elements are returned as is .