code: function hasClass(x, type) {
    const types = _.isArray(type) ? type : [type]
    return _.some(x.conformsTo().getInheritanceChain(), c => _.includes(types, c))
  }
docs: Check whether a class (or some classes) are in the inheritance chain of a given class
  @function
  @param {Class} x - The class to test
  @param type - Either a {@link Class} or an array of classes tha should be in the class x.