src/optimize.js
function compareResults (matches, elements) {
  const { length } = matches
  return length === elements.length && elements.every((element) => {
    for (var i = 0; i < length; i++) {
      if (matches[i] === element) {
        return true
      }
    }
    return false
  })
}
function compareResults (matches, elements) {
  const { length } = matches
  return length === elements.length && elements.every((element) => {
    for (var i = 0; i < length; i++) {
      if (matches[i] === element) {
        return true
      }
    }
    return false
  })
}
function compareResults ( matches , elements ) { const { length } = matches return length === elements . length && elements . every ( ( element ) => { for ( var i = 0 ; i < length ; i ++ ) { if ( matches [ i ] === element ) { return true } } return false } ) }
Evaluate matches with expected elements

@param  {Array.<HTMLElement>} matches  - [description]
@param  {Array.<HTMLElement>} elements - [description]
@return {Boolean}                      - [description]
Evaluate matches with expected elements