"use strict";
const _castPath = require("./_castPath.js");
const _toKey = require("./_toKey.js");
var castPath = _castPath, toKey = _toKey;
function baseGet(object, path) {
  path = castPath(path, object);
  var index = 0, length = path.length;
  while (object != null && index < length) {
    object = object[toKey(path[index++])];
  }
  return index && index == length ? object : void 0;
}
var _baseGet = baseGet;
module.exports = _baseGet;
//# sourceMappingURL=_baseGet.js.map
