(function (global, factory) {
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
  typeof define === 'function' && define.amd ? define(['exports'], factory) :
  (factory((global.ygkitObject = {})));
}(this, (function (exports) { 'use strict';

  function getProp(obj, prop) {
      if (!prop) {
          return obj;
      }
      var result = obj;
      var propArray = prop.split('.');
      propArray.forEach(function (item) {
          if (result) {
              result = result[item];
          }
      });
      return result;
  }

  exports.getProp = getProp;

  Object.defineProperty(exports, '__esModule', { value: true });

})));
//# sourceMappingURL=index.js.map
