"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const _castPath = require("./_castPath.cjs");
const _toKey = require("./_toKey.cjs");
function baseGet(object, path) {
  path = _castPath.default(path, object);
  var index = 0, length = path.length;
  while (object != null && index < length) {
    object = object[_toKey.default(path[index++])];
  }
  return index && index == length ? object : void 0;
}
exports.default = baseGet;
//# sourceMappingURL=_baseGet.cjs.map
