function filterItem(item, device) {
        if (match(device)) {
          item.classList.remove('filter-out')
        }
        else {
          item.classList.add('filter-out')
        }
      }
// Filters an item, perhaps removing it from view.
Filters an item, perhaps removing it from view.
Filters an item perhaps removing it from view .
function filterItem(item, device) {
        if (match(device)) {
          item.classList.remove('filter-out')
        }
        else {
          item.classList.add('filter-out')
        }
      }
function filterItem ( item , device ) { if ( match ( device ) ) { item . classList . remove ( 'filter-out' ) } else { item . classList . add ( 'filter-out' ) } }
Filters an item, perhaps removing it from view.
Filters an item perhaps removing it from view .