var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = arrayContainsObject;
var _CoreManager = _interopRequireDefault(require("./CoreManager"));
function arrayContainsObject(array, object) {
  if (array.indexOf(object) > -1) {
    return true;
  }
  var ParseObject = _CoreManager.default.getParseObject();
  for (var i = 0; i < array.length; i++) {
    if (array[i] instanceof ParseObject && array[i].className === object.className && array[i]._getId() === object._getId()) {
      return true;
    }
  }
  return false;
}