"use strict";

Liferay.Loader.define("frontend-js-components-web$dnd-core@11.1.3/dist/cjs/utils/matchesType", ['module', 'exports', 'require'], function (module, exports, require) {
  var define = undefined;
  var global = window;
  {
    Object.defineProperty(exports, "__esModule", {
      value: true
    });
    exports.matchesType = matchesType;

    function matchesType(targetType, draggedItemType) {
      if (draggedItemType === null) {
        return targetType === null;
      }

      return Array.isArray(targetType) ? targetType.some(function (t) {
        return t === draggedItemType;
      }) : targetType === draggedItemType;
    }
  }
});
//# sourceMappingURL=matchesType.js.map