dist/cytoscape.esm.js
function matches(query, ele) {
  return query.checks.every(function (chk) {
    return match[chk.type](chk, ele);
  });
}
function matches(query, ele) {
  return query.checks.every(function (chk) {
    return match[chk.type](chk, ele);
  });
}
function matches ( query , ele ) { return query . checks . every ( function ( chk ) { return match [ chk . type ] ( chk , ele ) ; } ) ; }
Returns whether the query matches for the element
@param query The `{ type, value, ... }` query object
@param ele The element to compare against
Returns whether the query matches for the element