define("ember-cp-validations/utils/should-call-super", ["exports"], function (exports) {
  "use strict";

  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.default = shouldCallSuper;
  /**
   * Checks if the give key exists on the object's super.
   * If so, we can successfully call the obj[key] _super
   *
   * Created by @rwjblue
   */
  function shouldCallSuper(obj, key) {
    var current = Object.getPrototypeOf(obj);
    current = Object.getPrototypeOf(current);

    while (current) {
      var descriptor = Object.getOwnPropertyDescriptor(current, key);

      if (descriptor) {
        return true;
      }

      current = Object.getPrototypeOf(current);
    }

    return false;
  }
});