function baseGet(object, path, pathKey) {
  if (object == null) {
    return;
  }
  object = toObject(object);
  if (pathKey !== undefined && pathKey in object) {
    path = [pathKey];
  }
  var index = 0,
      length = path.length;

  while (object != null && index < length) {
    object = toObject(object)[path[index++]];
  }
  return (index && index == length) ? object : undefined;
}
A specialized version of `baseIsEqual` for arrays and objects which performs
deep comparisons and tracks traversed objects enabling objects with circular
references to be compared.

@private
@param {Object} object The object to compare.
@param {Object} other The other object to compare.
@param {Function} equalFunc The function to determine equivalents of values.
@param {Function} [customizer] The function to customize comparing objects.
@param {boolean} [isLoose] Specify performing partial comparisons.
@param {Array} [stackA=[]] Tracks traversed `value` objects.
@param {Array} [stackB=[]] Tracks traversed `other` objects.
@returns {boolean} Returns `true` if the objects are equivalent, else `false`.