dist/LatticeFactory.js
function hasChecklist(Class) {
  var checklist = getChecklist(Class);

  for (var _len2 = arguments.length, items = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
    items[_key2 - 1] = arguments[_key2];
  }

  if (checklist && items.length) {
    for (var _i2 = 0; _i2 < items.length; _i2++) {
      var item = items[_i2];

      if (!checklist[item]) {
        return false;
      }
    }

    return true;
  }

  return checklist;
}
function hasChecklist(Class) {
  var checklist = getChecklist(Class);

  for (var _len2 = arguments.length, items = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
    items[_key2 - 1] = arguments[_key2];
  }

  if (checklist && items.length) {
    for (var _i2 = 0; _i2 < items.length; _i2++) {
      var item = items[_i2];

      if (!checklist[item]) {
        return false;
      }
    }

    return true;
  }

  return checklist;
}
function hasChecklist ( Class ) { var checklist = getChecklist ( Class ) ; for ( var _len2 = arguments . length , items = new Array ( _len2 > 1 ? _len2 - 1 : 0 ) , _key2 = 1 ; _key2 < _len2 ; _key2 ++ ) { items [ _key2 - 1 ] = arguments [ _key2 ] ; } if ( checklist && items . length ) { for ( var _i2 = 0 ; _i2 < items . length ; _i2 ++ ) { var item = items [ _i2 ] ; if ( ! checklist [ item ] ) { return false ; } } return true ; } return checklist ; }
This function, when invoked with only a class will return true if the
Class has a defined checklist. If one ore more CHECKLIST symbols are
passed, the function will only return true if all the supplied symbols
are set to truthy values.

@param {Function} Class a reference to the GQLBase class to set
@param {Array<Symbol>} items any of CHECK_SCHEMA, CHECK_RESOLVERS, or
CHECK_API_DOCS
@return {Boolean} true if the checklist and/or all items are true and
present.
This function when invoked with only a class will return true if the Class has a defined checklist . If one ore more CHECKLIST symbols are passed the function will only return true if all the supplied symbols are set to truthy values .